Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forwardTo() without having to specify resolver keys #383

Open
webberwang opened this issue May 7, 2019 · 0 comments
Open

forwardTo() without having to specify resolver keys #383

webberwang opened this issue May 7, 2019 · 0 comments

Comments

@webberwang
Copy link

webberwang commented May 7, 2019

Currently forwardTo() doesn't let us omit the resolvers, and as you can see it's quite a bit of boilerplate still.

export default {
  Query: {
    user: forwardTo('db'),
    users: forwardTo('db'),
  },
  Mutation: {
    createUser: forwardTo('db'),
    updateUser: forwardTo('db'),
    updateManyUsers: forwardTo('db'),
    upsertUser: forwardTo('db'),
    deleteUser: forwardTo('db'),
    deleteManyUsers: forwardTo('db'),
  }
}

Is it possible to have all those resolvers made available without having to specify them?

@webberwang webberwang changed the title forwardTo() without having to specific resolver keys forwardTo() without having to specify resolver keys May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant