Issues (37)

graphql/queries/brewery/mutiple.js (4 issues)

1
import {
2
  GraphQLList,
3
  GraphQLString,
0 ignored issues
show
The variable GraphQLString seems to be never used. Consider removing it.
Loading history...
4
  GraphQLEnumType
0 ignored issues
show
The variable GraphQLEnumType seems to be never used. Consider removing it.
Loading history...
5
} from 'graphql';
6
7
import breweryType from '../../types/brewery';
8
import BreweryModel from '../../../models/brewery.model';
9
10
export default {
11
  type: new GraphQLList(breweryType),
12
  args: {},
13
  resolve (root, params) {
0 ignored issues
show
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...
14
15
    return BreweryModel
16
      .find()
17
      .sort()
18
      .exec();
19
  }
20
};
21