Skip to content

feat(graphql): skip resources with a discriminator map - #8888

Merged
soyuka merged 1 commit into
mainfrom
polymorphism/6-graphql
Nov 27, 2026
Merged

soyuka merged 1 commit into
mainfrom
polymorphism/6-graphql

Conversation

@soyuka

@soyuka soyuka commented Nov 26, 2026 •

Copy link
Copy Markdown
Member
Q A
Branch? main
Tickets
License MIT
Doc PR

GraphQL does not support polymorphic resources yet: their default GraphQL operations are dropped (relations still resolve), explicit graphQlOperations throw.

Test: tests/Functional/DiscriminatedResourceGraphQlTest.php

Part 6/6 of the polymorphism stack (#8889), replaces #8874.

@soyuka
soyuka added this pull request to stack #8889 November 26, 2026 17:08
@soyuka
soyuka force-pushed the polymorphism/6-graphql branch from dfb65f5 to b46bad2 Compare November 27, 2026 09:30
@soyuka
soyuka force-pushed the polymorphism/6-graphql branch from b46bad2 to 22da945 Compare November 27, 2026 10:25
@soyuka
soyuka force-pushed the polymorphism/6-graphql branch 2 times, most recently from ea8fdd4 to 9c8e9af Compare November 27, 2026 14:55
@soyuka
soyuka removed this pull request from stack #8889 November 27, 2026 14:56
@soyuka
soyuka changed the base branch from polymorphism/5-object-mapper to polymorphism/3-jsonschema November 27, 2026 14:56
@soyuka
soyuka added this pull request to stack #8896 November 27, 2026 14:56
Base automatically changed from polymorphism/3-jsonschema to main November 27, 2026 14:56
@soyuka
soyuka force-pushed the polymorphism/6-graphql branch from 9c8e9af to 3313c03 Compare November 27, 2026 14:56
GraphQL does not support polymorphic resources yet: drop their default
GraphQL operations, and throw on explicit `graphQlOperations`.
@soyuka
soyuka force-pushed the polymorphism/6-graphql branch from 3313c03 to 35fbed4 Compare November 27, 2026 15:07
@soyuka
soyuka merged commit 7e92ef1 into main Nov 27, 2026
81 of 118 checks passed
@soyuka
soyuka deleted the polymorphism/6-graphql branch November 27, 2026 15:50
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.

1 participant