Generate documentation for API
It would be great if the graph.cool web interface had a view that showed documentation for the generated graphql API, like that generated by https://github.com/mhallin/graphql-docs or https://github.com/2fd/graphdoc
This would be a bit like the existing graphiql docs tab but formatted to fill the whole window like the graph view does. It would also be really useful if this view could be access from its own URL so that it could be left open in its own browser tab as a reference when coding against the generated API.
Just use the service the nice competitor is offering: Open your browser to: https://graphql-docs.com/docs/?graphqlUrl=https://api.graph.cool/simple/v1/PROJECTID
and you've got yourself your API docs :smile:
It could be quite nice to use something like Slate (https://github.com/lord/slate) to have an experience similar to the Stripe documentation but with Graphcool/GraphQL.
The new GraphQL Playground comes with a great docs experience - check it out here: https://blog.graph.cool/introducing-graphql-playground-f1e0a018f05d
The new playground docs are great, but are limited when developing on only a single laptop screen. Though I generally do my dev with 1+ additional monitors, not everyone will have that luxury. It would be very helpful to have the docs (presented exactly as they are), but available via a separate console tab.
Consider the above screenshot: I can see all of my primary navigation in the console, but toward the bottom, I am presented with two buttons: Endpoints, and Docs. I click on endpoints, and as I would think, the endpoints are presented, specific to my project. On the contrary, when I click on docs, it takes me to the graphcool docs, not my project docs (which was slightly confusing at first).
I love having easy accessibility to see the graphcool docs with a button click from the console, but it would seem more logical to have this particular placement link to project-specific docs, presented in such a way that takes up the console view entirely.
TL,DR; - It would be nice to separate the Docs portion, as shown above, into a full screen view.
It would be nice if you could 'detach' the docs, making them open in a new window, so you could put that on your other display (similar to how you can 'detach' the dev tools in Chrome)
Thanks, I moved the feature request to prismagraphql/prisma-cloud-feedback #153.
how can i take that documentation pages? i need to add api documentation to my production project- should i use that one generated in graphql playground? Is it normal to enable graphql playground on production site?
How to deal with api cals made in production? i mean if theres is api for changing something how to handle them and prevent real productions database changes?