Learn best practices and considerations for migrating from Scope's REST API to Scope's GraphQL API.
In this article
...
...
Example #1: Getting the data you need, and nothing more
...
...
Table of Contents |
---|
Differences in API logic
Migrating from REST to GraphQL represents a significant shift in API logic. The differences between REST as a style and GraphQL as a specification make it difficult—and often undesirable—to replace REST API calls with GraphQL API queries on a one-to-one basis. We've included specific examples of migration below.
...
Review the GraphQL spec
Review Scope's GraphQL schema
Consider how any existing code you have currently interacts with the Scope REST API
Use Global Node IDs to reference objects between API versions
...