Skip to content

GraphQL: Support Enum collections - #5955

Merged
soyuka merged 1 commit into
api-platform:mainfrom
jotwea:enum-collection
Nov 24, 2023
Merged

GraphQL: Support Enum collections#5955
soyuka merged 1 commit into
api-platform:mainfrom
jotwea:enum-collection

Conversation

@jotwea

@jotweajotwea commented Nov 8, 2023

Copy link
Copy Markdown
Contributor
QA
Branch?main
Tickets-
LicenseMIT
Doc PR-

We have a resource with an array property. The content of this array are enum values. This information can be provided with a doc block. Unfortunatelly on the GraphQL API this was visible as an iterable. With the changes in this PR it will be a proper "array of enum", same like i.e. "array of string".

The Behat tests should give you an insight into the details.

@soyukasoyuka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, could you rebase against main though it looks like there's a commit that doesn't belong to this patch. Commit should be: feat(graphql): ...

@jotwea
jotweaforce-pushed the enum-collection branch 2 times, most recently from 23c2cf2 to c971810CompareNovember 23, 2023 13:19
@soyuka
soyuka merged commit 9083765 into api-platform:mainNov 24, 2023
@soyuka

Copy link
Copy Markdown
Member

nice thanks@jotwea!

@jotwea
jotwea deleted the enum-collection branch December 16, 2023 14:56
soyuka pushed a commit to anoziere/core that referenced this pull request Dec 18, 2023
Co-authored-by: josef.wagner <josef.wagner@hf-solutions.co>
priyadi pushed a commit to priyadi/core that referenced this pull request Jan 3, 2024
Co-authored-by: josef.wagner <josef.wagner@hf-solutions.co>
Sign up for freeto 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.

2 participants

@jotwea@soyuka