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

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

Merged

Conversation

alanpoulain
Copy link
Member

@alanpoulain alanpoulain commented Apr 23, 2018

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
Copy link
Member

dunglas commented Apr 23, 2018

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
Member Author

This is done.

@Simperfit Simperfit requested a review from dunglas May 2, 2018 07:42
@Simperfit
Copy link
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
Copy link

BernardA commented Dec 31, 2019

@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
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.

None yet

4 participants