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

Support Array fieldtype in GraphQL #3972

Merged

Conversation

arthurperton
Copy link
Contributor

This fixes #3961 for both dynamic and keyed arrays. It just outputs them as is:

Screen Shot 2021-07-08 at 11 50 04

@jasonvarga
Copy link
Member

That's wonderful. For some reason I didn't think that was possible. Nice!

@arthurperton
Copy link
Contributor Author

Good! Yeah I started out with a more convoluted fix, until I stumbled onto this. So nice and simple.

Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works really well, thanks. I just added a test.

@jasonvarga jasonvarga merged commit 63c6f26 into statamic:3.1 Jul 14, 2021
@arthurperton arthurperton deleted the pr/issue-3961-graphql-array-field branch July 15, 2021 19:08
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

Successfully merging this pull request may close these issues.

Error when trying to get an array field from graphql api
2 participants