mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 10:11:40 -05:00
Change "root" argument to "parent".
This commit is contained in:
parent
a5c6d2e1fc
commit
ac3ba6f857
1 changed files with 1 additions and 1 deletions
|
@ -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 });
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue