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

types of input objects? #38

Open
svoynow opened this issue Jun 18, 2018 · 1 comment
Open

types of input objects? #38

svoynow opened this issue Jun 18, 2018 · 1 comment

Comments

@svoynow
Copy link

svoynow commented Jun 18, 2018

I'm a little confused about what if any record types are generated for input objects defined in a schema. If I have a mutation with an input object, how do I go about creating an instance to pass in my variables? Just a pointer to a bit of sample code would probably do the trick.

@baransu
Copy link
Contributor

baransu commented Dec 9, 2018

Check out this file for example usage: https://github.com/mhallin/graphql_ppx/blob/master/tests_bucklescript/__tests__/recursiveInput.re#L13 Input object is just a regular object. Hope this will help 🙂

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

2 participants