Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Azure APIM support GraphQL?

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 ?

like image 985
Zeus Avatar asked Dec 03 '19 09:12

Zeus


People also ask

Does Azure API Management support GraphQL?

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.

Can GraphQL used as API gateway?

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.

Which tool is best for GraphQL API?

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.

Can you use GraphQL with any API?

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.


2 Answers

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?

UPDATED MAY 2022

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/

like image 97
scott_lotus Avatar answered Oct 08 '22 18:10

scott_lotus


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

like image 4
Peter Tuton Avatar answered Oct 08 '22 18:10

Peter Tuton