Walkthrough: Switching between REST and GraphQL for Layout and Dictionary data
The Next.js sample application can use either the Sitecore Layout Service REST API or the Sitecore GraphQL Edge schema to fetch layout and dictionary data.
You can change the data-fetching method after project creation.
From REST to GraphQL
To switch the Next.js sample application from REST to GraphQL:
- Move or delete
From GraphQL to REST
To switch the Next.js sample application from GraphQL to REST: