What is GraphQL API?

GraphQL API is a new way for application developers to address various challenges. 

All GraphQL servers adhere to a specification that includes patterns to simplify the development of complex experiences across different platforms and devices.

Salesforce developers can benefit from the following:

1. Field selection: 
The client generating the GraphQL query needs to specify which fields they want in the response. 

This reduces the payload size as the client only receives the requested fields.

2. Resource aggregation: 
The client can traverse the fields in the GraphQL schema, reducing round trips between client and server and retrieving related resources in a single response.

3. Schema introspection: 
The ability to query the GraphQL server about the types, fields, and relationships within the schema. 

These patterns combine to create more responsive and high-quality applications.

Additionally, GraphQL API offers the following features:

- Concrete representations of your UI API Enabled sObjects, taking into account the object-level and field-level security of the current user. 

This means that different users can have different views of the GraphQL schema based on their access permissions.

- Adherence to the Relay Connection Specification when working with paged resources.

Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0