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

Export/Import of queries/mutations #6

Open
marktani opened this issue Jul 26, 2017 · 12 comments
Open

Export/Import of queries/mutations #6

marktani opened this issue Jul 26, 2017 · 12 comments

Comments

@marktani
Copy link
Contributor

Would be cool to have a format for exporting/importing queries and mutations. This way you could easily get started on an existing project, or work on the same project from different machines.

@schickling
Copy link
Collaborator

Could you elaborate a bit based on an example?

@tlvenn
Copy link

tlvenn commented Sep 28, 2017

I think maybe the idea would be able to dump and restore the playground as a json file.

@marktani
Copy link
Contributor Author

Yes, that's what I had in mind! 🙂

@ghost
Copy link

ghost commented Apr 13, 2019

So i am guessing this was never added?

@ReallyVirtual
Copy link

@MooreDevelopment @marktani I had to switch to a Linux VM from the Windows host and didn't want to recreate the dozens of tabs in the playground, so here's what I ended up doing (and you can do too):

@j0nd0n7
Copy link

j0nd0n7 commented Feb 6, 2020

Missing this feature too. It would act as the Postman collections, which are a very useful to share a getting started toolkit for an API.

@ds-steven-matison
Copy link

This feature is needed, and the workaround @ReallyVirtual provided does not work due to #797

@lasharela
Copy link

Share queries and mutations between the team, just restore and use later. As "Postman" GraphQL playground also must have it.

@Artimunor
Copy link

What is the status of this?
It would be really helpful (Switching from windows to macbook, and don't want to install chrome with browser sync there)

@aharris
Copy link

aharris commented Jun 18, 2022

I also would love to have this. This is the only thing keeping playground from falling short of postman.

@ahmadxgani
Copy link

UP!

@mirkogeest
Copy link

You can do it also without plugin:

  1. Open developer console
  2. At the console, run: localStorage.getItem('graphql-playground')
  3. Copy the result (if it is too long, click first on "Show more" at the and)
  4. At the destination, at the playground page, open the developer console -> console, and write localStorage.setItem('graphql-playground', <paste here the result from step 3>)
  5. Reload, and all your playground tabs are there

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

No branches or pull requests