feat(server): enable graphiql

This commit is contained in:
Joshua Seigler 2020-01-28 23:28:53 -05:00
parent 27a5900978
commit c401dfbe04
2 changed files with 3 additions and 2 deletions

View file

@ -28,7 +28,7 @@ const RootQuery = new GraphQLObjectType({
fields: {
book: {
type: BookType,
args: { id: { GraphQLString } },
args: { id: { type: GraphQLString } },
resolve (parent, { id }) {
return _.find(books, { id });
}