-
Notifications
You must be signed in to change notification settings - Fork 171
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
Why not Input Types? #84
Comments
I agree it would be nice to use be able to extend a common inputType for all List method parameter of entities. |
This is a good idea, and it's closer to the real usage of GraphQL nowadays. |
I did this and a little more on my fork if anyone is interested. Changes include:
|
@M1chaelTran Do you know if there's a way i can achieve this in my own project, I'm taking an assessment for a job and i'd like to be able to pass variables as inputs to the query to use them as filter methods. |
I need to understand why using the
db.js
example file from Readme it doesn't generate theinput PostInput
orinput UserInput
orinput CommentInput
.Example:
I think it is better to use something like this:
createPost(id: ID!, input: PostInput!): Post
instead of what is now generated:
createPost(id: ID!, title: String!, views: Int!, user_id: ID!): Post
.Am I wrong? I'm still learning... I'm asking for hints. Thanks.
The text was updated successfully, but these errors were encountered: