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

Default Args not implemented. #25

Closed
Teddy-Schmitz opened this issue Feb 23, 2018 · 3 comments
Closed

Default Args not implemented. #25

Teddy-Schmitz opened this issue Feb 23, 2018 · 3 comments

Comments

@Teddy-Schmitz
Copy link

Hello,

Thanks again for this library. It seems that default arguments in the graph schema isn't implemented?

blockchain(limit: Int = 10): BlockchainConnection!

Generates code that has limit as *int but I would expect it to be an int that sets it to 10 or the passed in value.

@Teddy-Schmitz
Copy link
Author

Teddy-Schmitz commented Feb 23, 2018

O and I guess for reference, what I am currently doing is converting a toy project I wrote a few weeks ago using neelance/graph-go to this project before we evaluate switching over our main production application as we like the features this supports.

Thanks again for sharing this library!

@vektah
Copy link
Collaborator

vektah commented Feb 25, 2018

Is the toy project public? If so, would you mind If i linked to it as an example?

@Teddy-Schmitz
Copy link
Author

thanks for getting this in so quickly, its not public right now but if that changes I'll let you know.

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