The output serves no purpose in it current format. It appears that this functionality was introduced in the pull request titled Export query for POST body #106. To be made usable it requires hand editing to fix the escaped newlines.
Bug Work-Around:
Select and copy the text directly from the query tab. Paste into a file and save. To import open the text file and pasted its contents directly into the query tab.
GraphiQL Version: 0.7.2 OS: Windows 10 (latest)
The "Export Query" menu function does not produce anything that is usable. For example:
Initial Query (formatted as in in the query tab) :
Export Output:
The output serves no purpose in it current format. It appears that this functionality was introduced in the pull request titled Export query for POST body #106. To be made usable it requires hand editing to fix the escaped newlines.
Bug Work-Around: Select and copy the text directly from the query tab. Paste into a file and save. To import open the text file and pasted its contents directly into the query tab.