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
Accept a SimpleObject as input type. #32
Comments
My bad, it looks like the object is not accepted either. I'm not sure how this is supposed to worth then as the docs are pretty scarce on this subject, I'll keep investigating. |
|
The documentation is not detailed enough.😂 |
@sunli829 yeah, the rest works though. Once I'm done with my graphql implementation and I'm doing a full on Mutation/Subscription/Query impl backend by MongoDB - I'll make sure to contribute some boilerplate. It would also be nice to somehow be able to expose all fields by default without supplying |
This is a good suggestion, I created a new issue #33 and started adding this feature now. |
Oh wow, that was quick, thanks! |
Currently if I want to define a struct with a bunch of fields as an InputType I would also have to define the
impl
for it and all the fields there, which makes the amount of boilerplate unbearable.I'd like to be able to simply define a struct and use it's fields as input fields.
The text was updated successfully, but these errors were encountered: