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

Support custom graphql scalar types as args #17

Open
samueljoli opened this issue Oct 31, 2017 · 1 comment
Open

Support custom graphql scalar types as args #17

samueljoli opened this issue Oct 31, 2017 · 1 comment

Comments

@samueljoli
Copy link
Contributor

Context

  • node version:
  • environment (node, browser):
  • any relevant modules used with (hapi, hoek, etc.):
  • any other relevant information:

What are you trying to achieve or the steps to reproduce ?

What result did you expect ?

What result did you observe ?

@samueljoli
Copy link
Contributor Author

const customScalars = require('custom-graphql-scalars');

const Book = Joi.object().keys({
  title: Joi.string()
});

const options = {
  name: 'Book',
  args: {
    id: customScalars.guid()
  }
}

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