{"repo":"DmitryTsepelev/graphql-ruby-persisted_queries","free":true,"listed":false,"github":"https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries","clone":"git clone https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries.git","description":"Persisted queries for graphql-ruby","language":"Ruby","stars":178,"topics":["graphql","ruby","apollo"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"GraphQL::PersistedQueries GraphQL::PersistedQueries is the implementation of persisted queries for graphql-ruby. With this plugin your backend will cache all the queries, while frontend will send the full query only when it's not found at the backend storage. - 🗑 Heavy query parameter will be omitted in most of cases – network requests will become less heavy - 🤝 Clients share cached queries – it's enough to miss cache only once for each unique query - 🎅 Works for clients without persisted query support Used in production by: - Yammer by Microsoft - Toptal - Want to be here? Let me know 🙂 Professional Support Need help with your GraphQL API architecture, schema design, or performance? I'm available for consulting — get in touch. Getting started First of all, install and configure apollo's persisted queries on the front–end side: Add the gem to your Gemfile gem 'graphql-persisted queries' and add the plugin to your schema class: Pass :extensions argument as part of a context to all calls of GraphqlSchema#execute , usually it happens in GraphqlController , GraphqlChannel and tests: You're all set! Compiled queries (increases performance up to 2x!) When query arrives to the backend, GraphQL execution engine needs some time to parse it and build the AST. In case of a huge query it might take a lot of time. What if we cache the AST instead of a query text and skip parsing completely? The only thing you need to do is to turn :compiled queries option on: Using this option might m","default_branch":null,"files":null,"tree":[],"storefront":"/r/DmitryTsepelev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DmitryTsepelev/graphql-ruby-persisted_queries/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."}