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

New interface to accept symfony dumb object into graphiql tab panel #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

viniciusrangelfp
Copy link

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Documented? yes
License MIT

This PR helps to debug Symfony application using graphiql bundle.

I am using Graphiql footer to inject Symfony dump objects to react graphiql tab panel.
I had to use this strategy because i can't change React Graphiql tab result.

image

Its no need any extra configuration since graphql resolver sends an object as result, if we got a string i will inject outside react GraphiQL component.

Also, this PR allows you using a custom variable inside twig to put your custom logo inside GraphiQL.

You can change your logo using a custom variable on twig file.

{# templates/GraphiQL/index.html.twig #}
{% set logoPath = 'https://mylink.com/images/logo.png' %}

You can also work with local images You can change your logo using a custom variable on twig file.

{# templates/GraphiQL/index.html.twig #}
{# move the file mylogo.png to public folder #}
{% set logoPath = 'mylogo.png' %}

@viniciusrangelfp viniciusrangelfp changed the title New interface to accept symfony dumb objeto into graphiql tab panel New interface to accept symfony dumb object into graphiql tab panel May 14, 2020
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