Skip to content

[GraphQL] Fix introspection (graphql-php / GraphiQL)#1886

Merged
Simperfit merged 3 commits into
api-platform:2.2from
alanpoulain:fix/introspection-custom-types
May 2, 2018
Merged

[GraphQL] Fix introspection (graphql-php / GraphiQL)#1886
Simperfit merged 3 commits into
api-platform:2.2from
alanpoulain:fix/introspection-custom-types

Conversation

@alanpoulain

@alanpoulain alanpoulain commented Apr 23, 2018

Copy link
Copy Markdown
Member
Q A
Bug fix? yes
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets #1880
License MIT
Doc PR

The best way to fix current issues with GraphQL introspection is to remove the problematic code.

We should be waiting for this PR to be merged graphql/graphql-spec#395 and changes to be affected to graphql-php and graphql-js in order to add it again.

The main lost feature is the ability to manage embedded entities.

A way to get this feature back will be to have two fields (one for an IRI, the other for the data) for relations but there is some work to be done.

@alanpoulain alanpoulain force-pushed the fix/introspection-custom-types branch from 311525d to 2b64eaa Compare April 23, 2018 16:05
@dunglas

dunglas commented Apr 23, 2018

Copy link
Copy Markdown
Member

Can you just remove the code for now please (git revert?). We don't need to add commented code, we'll add it back when the upstream issue will be fixed.

@alanpoulain alanpoulain force-pushed the fix/introspection-custom-types branch from 28b5ef2 to d317e94 Compare April 30, 2018 20:38
@alanpoulain

Copy link
Copy Markdown
Member Author

This is done.

@Simperfit Simperfit requested a review from dunglas May 2, 2018 07:42
@Simperfit

Copy link
Copy Markdown
Contributor

Thanks @alanpoulain.

@Simperfit Simperfit merged commit 654e42e into api-platform:2.2 May 2, 2018
teohhanhui pushed a commit to teohhanhui/api-platform-core that referenced this pull request May 2, 2018
…on-custom-types

[GraphQL] Fix introspection (graphql-php / GraphiQL)
@BernardA

BernardA commented Dec 31, 2019

Copy link
Copy Markdown

@alanpoulain, please inform current status concerning embedded mutations. I have a bid entity which embeds a message entity, which embeds an attachment entity. As it is now, it seems that I need to create 3 create mutations. Is that still the case? Thanks.
Please refer to this question on SO.

@alanpoulain

Copy link
Copy Markdown
Member Author

Yes it is: #3258 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants