We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c0fa85 commit c94e466Copy full SHA for c94e466
README.md
@@ -113,10 +113,10 @@ class Posts extends MongoDataSource {
113
114
const resolvers = {
115
Post: {
116
- author: (post, _, { users }) => users.getUser(post.authorId)
+ author: (post, _, { dataSources: { users } }) => users.getUser(post.authorId)
117
},
118
User: {
119
- posts: (user, _, { posts }) => posts.getPosts(user.postIds)
+ posts: (user, _, { dataSources: { posts } }) => posts.getPosts(user.postIds)
120
}
121
122
0 commit comments