In the world of APIs, REST is very extended. But what happens when you need more flexibility in your data-fetching strategies? For instance letting the client to choose what fields is going to receive. Enter GraphQL, a query language for your APIs that provides a flexible alternative to REST.
In this post, we will:
- Compare REST and GraphQL.
- Dive into the basics of GraphQL: Queries, Mutations, and HTTP.
- Build a simple GraphQL server implementation using Graphene, SQLAlchemy, and Flask over data in InterSystems IRIS.
- Explore how to deploy your GraphQL server as a WSGI application in IRIS.