Issues (37)

graphql/mutations/beer/remove-all.js (3 issues)

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
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...
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...
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