logo

NJP

How to Use GraphQL in ServiceNow & Service Portal

Import · Nov 03, 2020 · article

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.

I've made the source code, download links, and widget available in the full blog post, available here: https://serviceportal.io/graphql-in-servicenow/

Cheers,

View original source

https://www.servicenow.com/community/developer-blog/how-to-use-graphql-in-servicenow-service-portal/ba-p/2273021