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

Enforce GraphQLList length #397

Closed
aliatsis opened this issue Jun 2, 2016 · 2 comments
Closed

Enforce GraphQLList length #397

aliatsis opened this issue Jun 2, 2016 · 2 comments

Comments

@aliatsis
Copy link

aliatsis commented Jun 2, 2016

Is there a way to enforce that a GraphQLList have a certain length of values?
Or, at the very least, has at least 1 value?
An empty array is currently valid, but I need to make sure theres a value inside.

Thanks in advance!

@helfer
Copy link
Contributor

helfer commented Jun 2, 2016

There's currently no way to enforce this in the schema. This falls under validation, so you may be interested in the discussion over on #361

@aliatsis
Copy link
Author

aliatsis commented Jun 2, 2016

@helfer thanks!

@aliatsis aliatsis closed this as completed Jun 2, 2016
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