We have microservices setup with Azure APIM as gateway and routers to all the services in the back. Is there anyway I can introduce GrpahQl before APIM or within APIM ?
One of the features that Azure API Management introduced at BUILD 2022 was Synthetic GraphQL – building a GraphQL service from a set of REST APIs. GraphQL is still relatively new - at least compared to REST and SOAP - but it provides advantages over REST APIs when dealing with client applications.
This is because GraphQL has a few properties that lend themselves beautifully to API gateways. A GraphQL API gateway can have a single-defined schema and source data from across many different microservices, so clients can query a combination of fields without knowing where the data is coming from.
GraphiQL is an in-browser IDE perfect for testing and documenting GraphQL APIs. It uses a React component to render the GraphiQL editor. GraphiQL allows for syntax highlighting, intelligent type ahead of fields, arguments, and types, real-time error highlighting and reporting, and automatic query completion.
GraphQL can retrieve data on top of or instead of the API management layer, but data can still be submitted through the existing REST APIs.
To answer your immediate question, there is no support for GraphQL via Azure APIM to date.
Its one of these feature this has been upvoted by me and many others on Azure uservoice @ GraphQL introspective support within API Management / feedback forums.
Also see What additional services should Azure provide?
Preview Features
Synthetic GraphQL allows you to easily create a GraphQL API based on your existing HTTP (SOAP or REST) APIs. This allows you to quickly upgrade your API to support modern client application development without affecting your existing infrastructure.
With this availability, you can:
Change your existing APIs into GraphQL to support modern client application development. Build a GraphQL API from existing SOAP, REST, and other HTTP APIs.
Augment your existing GraphQL API with third party APIs such as Microsoft Graph, Dynamics, Shopify, and Zendesk.
Announcement: https://azure.microsoft.com/services/api-management/#overview
Documentation: https://azure.microsoft.com/updates/public-preview-synthetic-graphql/
Assuming your backend APIs are written to support GraphQL, importing GraphQL APIs is now available (in preview, at the time of writing this response) by Azure API Management: https://learn.microsoft.com/en-us/azure/api-management/graphql-api
GraphQL validation policies are also available (in preview): https://learn.microsoft.com/en-us/azure/api-management/graphql-validation-policies
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With