-
Notifications
You must be signed in to change notification settings - Fork 9
Example query using each directive maybe? #10
Comments
Hey @hailwood thanks for the feedback!!! The docs could certainly benefit from a "examples" section, I was thinking at the bottom of every page using several directives per query/mutation so the page doesn't get too overloaded. But yes, they could absolutely benefit from more clarity!! I was also planning on working in a "How Do I" or "FAQs" section that would be similar to the questions you presented on the main repo. Let me know if you have any other feedback/questions and I'll update this post when I get some more content worked into the docs! Thanks @hailwood! |
Hey @hailwood Nice idea. However, i am struggling a bit how to do example queries specific to directives. Since the directives are server side... Also, most of the directives are pretty substantial in what they do, meaning they do enable a specific purpose. So there is not really a before and after. The "How To's" seems like a great approach. A set of common problems and a suggestion for how it can be solved with Lighthouse. |
Starting from v2.2, all directives live on one page. Comprehensive guides are there to explain certain use-cases and logically group directives according to their purpose. I think some directives may benefit from example queries, for others it seems a bit over the top. |
@spawnia I unfortunately don't have time myself currently ⏳,
Then it links it all together quite nicely, and it seems natural that the directives that need their usage explained probably need a scenario around their usage. Thoughts? |
Definitely working on transferring the "How would I" issue over to the docs. I am still not quite sure about how much info should go on the directives listing, apart from the basic information and api. Cross-referencing with use-cases might be a great way to make the information easily discoverable while keeping things DRY. |
The new guides/directive structure is well into the making. I tried to add examples where they make sense. I guess we can close this Issue, as we can all agree this is a good idea and we will have to continually work on this case-by-case. |
The |
Hey @chrissm79 ,
New docs are A+
Was thinking maybe we could add an example query using each directive to give the users a clearer understanding of how applying it manipulates the query.
Thoughts?
The text was updated successfully, but these errors were encountered: