graphql/mutations/beer/remove-all.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 14
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 0
c 1
b 0
f 1
nc 1
dl 0
loc 14
rs 10
wmc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 3

1 Function

Rating   Name   Duplication   Size   Complexity  
A ???.resolve 0 5 1
1
import {
2
  GraphQLBoolean
3
} from 'graphql';
4
5
import BeerModel from '../../../models/beer.model';
6
7
export default {
8
  type: GraphQLBoolean,
9
  resolve (root, params, options) {
0 ignored issues
show
Unused Code introduced by
The parameter options is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
Unused Code introduced by
The parameter root is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
Unused Code introduced by
The parameter params is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
10
    return BeerModel
11
      .remove({})
12
      .exec();
13
  }
14
};
15