Skip to content

[6.x] Resolve Entries and Assets GraphQL types#14618

Closed
ryanmitchell wants to merge 3 commits into
statamic:6.xfrom
ryanmitchell:fix/issue-12974
Closed

[6.x] Resolve Entries and Assets GraphQL types#14618
ryanmitchell wants to merge 3 commits into
statamic:6.xfrom
ryanmitchell:fix/issue-12974

Conversation

@ryanmitchell
Copy link
Copy Markdown
Contributor

Found it hard to write a succinct title for this one 🤔

This PR updates the Entries fieldtype to return a EntriesSelectType when specific collections are requested on the field type. It also updates the Assets fieldtype to return an AssetType when a container is specified on the field.

Potentially breaking, but gives better cues to the GraphQL consumer as to what to expect.

Don't feel bad about closing this if you'd prefer to tackle it in a different way.

Closes #12974

@jasonvarga
Copy link
Copy Markdown
Member

Thanks! This is good, but definitely a breaking change. Gonna close this one but make an internal note to come back to it for v7.

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.

Inconsistent resolvement of gql types

2 participants