GraphQL is a standard query language that allows applications to flexibly access
required data and provides a modern way to integrate applications. Unlike traditional REST APIs,
GraphQL provides granularity in specifying fields and relationships and is more
efficient.
Required Editions
| Available in: both Salesforce Classic
and Lightning Experience (not for high-data-volume external objects) |
|
Available in: Developer Edition
Available for an extra cost in:
Enterprise, Performance, and Unlimited Editions
|
The Salesforce Connect adapter for GraphQL includes special extensions for AWS AppSync and
provides seamless access to Amazon RDS. AWS AppSync hosts the GraphQL endpoint, accepts, and
validates GraphQL queries. The GraphQL resolver interprets GraphQL queries into SQL queries
and executes them against an Amazon RDS-hosted database. You can then create an external data
source with the endpoint URL set to AppSync GraphQL API and provide access to AWS data source
from Salesforce.
- Map Salesforce External Object Fields to GraphQL Types
When you map external object fields to GraphQL scalar types, you may want to optimize the type mapping for a better experience in Salesforce. For example, a String in the GraphQL schema can be mapped to a Picklist in Salesforce to improve data quality.