logo

NJP

GraphQL API in a Component

Import · Oct 26, 2020 · article

As part of the Now Platform Paris release, ServiceNow has added a new capability called the GraphQL API Framework. This API framework allows you to create a custom GraphQL API to query record data from a component or third-party system.

What is GraphQL and How Should You Use It?

GraphQL is a web query language originally created by Facebook, but now open-source, optimized for client-side development. It aims to solve problems like under and over fetching of data, versioning, and endpoint sprawl.

The main benefits of GraphQL in ServiceNow are:

  • Use introspection to discover fields and objects available to query
  • Query the exact data you need
  • Manage multiple queries from a single endpoint
  • Integrate with third-party systems by making the schema public

Find out how to set it up in ServiceNow and call it from a component on the dev blog.

View original source

https://www.servicenow.com/community/developer-blog/graphql-api-in-a-component/ba-p/2280655