GraphQL is an open-source data query and manipulation language for APIs. GraphQL offers many benefits over REST API’s, including:
Fetching data across multiple sources from a single API call
Returns only the data that is requested
Supports validation and type checking
Autogenerating API documentation
In this video, I’ll show you how to construct a sample GraphQL query to fetch data in ServiceNow and then how we can use GraphQL inside of a ServicePortal widget.
To download the widget and source code, you can access everything here: https://serviceportal.io/graphql-in-s...