yuki24 / artemis

Ruby GraphQL client on Rails that actually makes you more productive
MIT License
207 stars 14 forks source link

docs: added fragments usage docs #81

Closed rhanuch closed 2 years ago

rhanuch commented 2 years ago

The purpose of this PR is to add documentation for the fragments on GraphQL and the way these are used by the gem. I struggled to use them as this was not documented and had to dive into the test suite. This PR tries to fix the mentioned issue by giving an example on how to use the fragment and invoke it from other parts in the .graphql files.

Nice day 😄

yuki24 commented 2 years ago

Thank you!