Add GraphiQL support#26
Add GraphiQL support#26chris-ramon merged 5 commits intographql-go:masterfrom cloudlena:feature/graphiql
Conversation
|
This seems nice. Please do merge. |
|
I resolved the problems mentioned above and added tests so I think this can be merged now. |
|
@sogko, can you please comment or merge? |
|
Added comment here. No respond yet. |
|
where can the ui be reached? i'm going to |
|
@klud1, it's at the same URL where your graphql endpoint is. If you reach it with a browser, it will return the GraphiQL GUI. |
|
Alright, it's working! Thanks, awesome work! Hope this gets merged asap so i don't have to tweak my build process in order to get these changes. |
|
LGTM 👍 — this is really awesome, thanks a lot @mastertinner! 🚢 |
|
Thanks for merging, @chris-ramon! Could you create a new release |
Sure thing!, https://github.com/graphql-go/handler/releases/tag/v0.2.0 |
|
Nice! Thanks, @chris-ramon! |
I took the template from https://github.com/graphql/express-graphql/blob/master/src/renderGraphiQL.js and go-ified it.
@sogko and others: Please let me know what you think.
If you like it, I'll add the necessary tests and make the code cleaner.
I've had some trouble adding
ResultStringandVariablesString. I would be glad about some advice about where to get them.