Graphql query postman7/31/2023 How does the Persisted Query Protocol work?Ĭonsider the following query to retrieve the articleBody data of an Article at a given path via a Content Delivery API endpoint: If the endpoint recognizes the hash, it will execute the desired query and send the result back to the client in the response. Simply put, the GraphQL client makes a request containing the hash of its desired query to a Brightspot GraphQL endpoint. The persisted query protocol, as described by Apollo, defines the interactions between client and server when passing query hashes. This allows CDNs to cache the result, further improving performance. Additionally, this reduced size enables GraphQL queries to be sent via HTTP GET. This reduced payload size allows for quicker network transmission between the client and server, while still retrieving the same data. To remedy this, persisted queries allow client applications to send a hash of a query to Brightspot in place of the full query text. GraphQL queries are an effective method of retrieving data, but the repeated transmission of complex queries hampers network performance due to their length. Introduction to GraphQL persisted queries This topic explains how to configure persisted queries on your endpoint and the protocol for using them. For quick, out-of-the-box integrations offered by Brightspot, see the Integrations section in the Brightspot CMS User Guide. This Integrations section, found in the Developer Guide, covers integrations that require developer intervention to turn on.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |