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

[String] not a valid type #520

Open
Shikamaru1995 opened this issue Oct 19, 2021 · 1 comment
Open

[String] not a valid type #520

Shikamaru1995 opened this issue Oct 19, 2021 · 1 comment

Comments

@Shikamaru1995
Copy link

Shikamaru1995 commented Oct 19, 2021

I want to pass an array of strings to graphql query but always got complain that [String] is an invalid type. I tried [Int], [Boolean] and both can be interpreted as valid types. I bumped up my graphql-tag to the newest version but still nothing changed.
Could you please help me figure out what's wrong on my side? Or graphql-tag intrinsically doesn't allow [String] as a parameter. If the latter is true, could you explain why it it not supported and an alternative way will be very much appreciated.

@jerelmiller
Copy link
Member

Hey @Shikamaru1995 👋

I know this issue is pretty old at this point but wanted to see if this was still a problem or not? FWIW I haven't seen any issues declaring [String] as a type myself. Let me know if this is still a problem and we can look into it. Thanks!

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