yuri
07/04/2018, 6:09 PMresolver-forwarding
? We build API without using GraphQL schema language and instead we use separate object types with GraphQLObjectType
.
All examples I found use schema language only 😞
const resolvers = {
Query: {
posts: forwardTo("db")
},
Mutation: {
createPost: forwardTo("db"),
deletePost: forwardTo("db")
}
};
but how make this work with objects? Do you have xp with that?yuri
07/04/2018, 7:39 PMFran Dios
07/05/2018, 2:41 AM