Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
clearyj3
Regular Visitor

Fabric GraphQL API and API management Service

Hi,

 

Has anyone tried to use their fabric api for graphql in the azure API management service? Any help would be great, thanks. 

3 REPLIES 3
v-huijiey-msft
Community Support
Community Support

Hi @clearyj3 ,

 

You can use the Fabric GraphQL API with Azure API Management Services.

 

Here are the easy-to-follow steps:

 

  1. Register an application in Azure Active Directory, get the client ID and tenant ID.
  2. Assign your application the required permissions, such as GraphQL.Execute.All.
  3. Create your GraphQL API and make sure the necessary data sources are accessible.
  4. Import the GraphQL schema into the Azure API Management Service and configure it.

 

You can find the steps and more information on how to do this in the following documentation:

Connect applications to Fabric API for GraphQL - Microsoft Fabric | Microsoft Learn

Add a GraphQL API to Azure API Management | Microsoft Learn

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Hi Yang, 

 

I've managed to complete everything except the final step. The GraphQL schema generated by Fabric's API isn't being parsed correctly by our API management services, leading to numerous type errors when I try to upload the .graphql file. Do you have any suggestions? Thanks!

It sounds like you're encountering schema parsing issues in Azure API Management when uploading the .graphql file generated by the Fabric GraphQL API. This could be due to discrepancies in how the schema is structured or the types defined by Fabric's API.

Here are a few steps you can take to troubleshoot and resolve the issue:

- validate the scheme using an online GraphQL schema validator (e.g., GraphQL Schema Linter) to check for issues in the .graphql file. Look for undefined or incorrectly formatted types, directives, or fields that might not conform to the GraphQL specification.
- if the schema is large or complex, try splitting it into smaller chunks to isolate the problematic types. Test importing a simplified schema into Azure API Management to identify which part is causing the error.
- sometimes, the auto-generated schema might include custom types or directives not supported by Azure API Management. Edit the .graphql file to remove or adjust these unsupported elements.
- ensure your Azure API Management instance supports all GraphQL features used in the schema. Refer to the Azure API Management GraphQL documentation to check for feature compatibility.
- try turning on detailed logging in Azure API Management to capture error details when the schema upload fails. This can provide insights into specific issues.
- if the above steps don't resolve the issue, it might be worth contacting Microsoft support with the schema file and error details for further assistance.

If this post helps you resolve the issue, please consider accepting it as the solution to help other members find it more quickly. If I’ve misunderstood your needs or you still have additional questions, feel free to let me know, and I’ll be happy to assist further. Thanks a lot!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

November Update

Fabric Monthly Update - November 2024

Check out the November 2024 Fabric update to learn about new features.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.