{"repo":"yuki24/artemis","free":true,"listed":false,"github":"https://github.com/yuki24/artemis","clone":"git clone https://github.com/yuki24/artemis.git","description":"Ruby GraphQL client on Rails that actually makes you more productive","language":"Ruby","stars":207,"topics":["ruby","rails","graphql","graphql-client","http2"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Artemis Artemis is a GraphQL client that is designed to fit well on Rails. Convention over Configuration : You'll never have to make trivial decisions or spend time on boring setup. Start making a GraphQL request in literally 30s. Performant by default : You can't do wrong when it comes to performance. All GraphQL files are pre-loaded only once in production and it'll never affect runtime performance. Comes with options that enable persistent connections and even HTTP/2, the next-gen high-performance protocol. First-class support for testing : Testing and stubbing GraphQL requests couldn't be simpler. No need to add external dependencies to test well. Battle-tested at Artsy Getting started Add this line to your application's Gemfile: Once you run bundle install on your Rails app, run the install command: Generating your first query Artemis comes with a query generator. For exmaple, you could use the query generator to generate a query stub for artist : Then this will generate: Then you could call the class method that has the matching name artist : You can also specify a file name: Then you can make a query in artist details on artwork.graphql with: The convention Artemis assumes that the files related to GraphQL are organized in a certain way. For example, a service that talks to Artsy's GraphQL API could have the following structure: Fragments Fragments are defined in defined in a standard way in a file named artwork fragment.graphql with the standard convention: The way of","default_branch":null,"files":null,"tree":[],"storefront":"/r/yuki24","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yuki24/artemis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}