Introducing the Xurrent GraphQL API
Developers within the Xurrent community will be excited to hear that the Xurrent GraphQL API has been released.Β Like Xurrentβs REST API, this new API can be used to retrieve and update Xurrent data.Β The reason why developers like GraphQL so much, though, is its efficiency.Β It allows developers to be more specific so theyβll get a more precise result with a single API request.
For example, if Xurrentβs REST API is used to look up the address of the site where someoneβs manager works, multiple API requests are needed.Β The first API call looks up the person record of the individual whose managerβs site address needs to be retrieved.Β This returns all data of this person record.Β From this data, the person ID of the manager is obtained and this ID is then used for the second API request, which retrieves all data of the managerβs person record.Β From this record the Site ID is collected, which is then used to retrieve the data of the site record in a third API request.Β The last step is to extract the address of the site from the site data.
That is three API requests and quite some data retrieved only to get the address of a site.Β Because Xurrentβs REST API is very fast, this does not really slow down integrations, but it would be easier if developers could use a single API request to only obtain the address of the site of the manager of a specific individual.
That is the capability this new GraphQL API brings to the table.Β It speeds up the development of integrations, which is great for developers.Β Because it can also dramatically reduce the number of queries needed for an integration, this realizes significant cost savings for organizations relying on integration platforms that charge per API request.
The GraphQL query language allows developers to define what they need in a JSON (JavaScript Object Notation) object and to send this over HTTP after which the response is returned in JSON.Β The functionality of a GraphQL API is described by its schema.Β Every GraphQL schema has a root type for queries (for retrieving data) and mutations (for adding, updating and deleting data).Β The Xurrent Developer website has been updated to help developers get started with the Xurrent GraphQL API.