Guys, do you have more examples with `resolver-for...
# orm-help
y
Guys, do you have more examples with
resolver-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 😞
Copy code
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?
No one knows? 😥
f
Isn’t it the same for both? Resolvers are written always in JS after all, not in SDL. Maybe I’m not understanding the issue 🤔