Change "root" argument to "parent".

This commit is contained in:
Jesse Rosenberger 2018-05-02 16:20:15 -07:00
parent a5c6d2e1fc
commit ac3ba6f857
No known key found for this signature in database
GPG key ID: C0CCCF81AA6C08D8

View file

@ -27,7 +27,7 @@ type Query {
const resolvers = {
Query: {
author(root, args, context, info) {
author(parent, args, context, info) {
return find(authors, { id: args.id });
},
},