Closed thearabbit closed 4 years ago
Document
const resolvers = { User: { posts: (user, _, { posts }) => posts.getPosts(user.postIds) } }
Should be change
const resolvers = { User: { posts: (user, _, { dataSources: { posts } }) => posts.getPosts(user.postIds) } }
Thanks!
Document
Should be change