Microsoft Fabric Updates Blog

Building Apps with Microsoft Fabric API for GraphQL

A data application is a powerful tool that blends data visualizations with web apps, making it easy to dive deep into data analysis and uncover valuable insights. Did you know how Microsoft Fabric has API for GraphQL to build your data applications? It’s quite impressive as it allows you to create a GraphQL API with just a few clicks, enabling you to pull data from sources such as Data Warehouses, Lakehouse, Mirrored Databases, and DataMart in Microsoft Fabric.

Using GraphQL API for building data apps for analytics offers several advantages:

  • Efficient Data Retrieval: GraphQL allows clients to request exactly the data they need, reducing over-fetching and under-fetching issues common with REST APIs.
  • Flexibility: It provides a flexible query language that can adapt to changing requirements without needing to modify the backend.
  • Single Endpoint: All data requests are handled through a single endpoint, simplifying the API structure and reducing the complexity of managing multiple endpoints.
  • Update data: GraphQL can handle data updates using mutations, which is crucial for analytics applications.
  • Strong Typing: GraphQL’s schema defines the types of data and their relationships, ensuring data consistency and making it easier to understand and use the API.

Build a data application using Fabric API for GraphQL

Here’s a high-level design architecture for building a data application that uses Microsoft Fabric API for GraphQL to get data from a gold layer in a medallion architecture.

Build apps with Microsoft Fabric API for GraphQL reference architecture
Build apps with Microsoft Fabric API for GraphQL reference architecture

Architectures details:

  1. Microsoft Fabric API for GraphQL: Use Microsoft Fabric to create a GraphQL API. This API will serve as the interface for your web app to query data. GraphQL’s flexibility allows clients to request exactly the data they need, improving efficiency.
  2. Medallion architecture:
    • Bronze layer: Ingest raw data from various sources.
    • Silver layer: Cleanse and transform the data to ingest in this layer and this layer ensures data quality and consistency.
    • Gold layer: Aggregate and refine the data for analytics and reporting. This layer provides highly curated datasets optimized for business intelligence and machine learning.
  3. Data access: The GraphQL API will query the gold layer in the medallion architecture. Use Data warehouse, Fabric SQL database or Azure SQL Database to store the gold layer data, ensuring it is easily accessible and performant.
  4. Security: You can now use service principal to access Fabric API for GraphQL in your application. Service principal is a security identity that you can create in Entra and assign permissions to it in Entra and other Microsoft services, such as Microsoft Fabric. 
    To learn more, refer to a blog post on Announcing Service Principal support for Fabric APIs 
  5. Build the front-end app: Host your web application in Azure using Azure web apps. This fully managed platform supports various programming languages and frameworks, making it easy to deploy and scale your app. Learn more on how to build and app using Azure web apps. You can use other solutions like AKS, Virtual machines etc. to host your front-end application.
  6. Deployment and CI/CD: Set up a continuous integration and continuous deployment (CI/CD) pipeline using Azure DevOps or GitHub Actions to automate the deployment process, ensuring quick and reliable updates to your application. Learn more how to enable CI/CD in Azure Web Apps.

Conclusion

In conclusion, the Microsoft Fabric API for GraphQL is great to build your data apps for analytics needs. It allows you to access data securely and efficiently from Microsoft Fabric data sources. Its ability to provide precise data queries minimizes data transfer and optimizes performance, ensuring that applications only retrieve the necessary information. The strong typing and schema validation inherent in GraphQL enhances data integrity and consistency, while the single endpoint simplifies API management. Overall, leveraging the Fabric API for GraphQL empowers developers to build responsive, secure, and scalable data applications that can adapt to evolving business needs.

Relaterade blogginlägg

Building Apps with Microsoft Fabric API for GraphQL

november 4, 2025 från Misha Desai

We’re introducing a set of new enhancements for Data Agent creators — designed to make it easier to debug, improve, and express your agent’s logic. Whether you’re tuning example queries, refining instructions, or validating performance, these updates make it faster to iterate and deliver high-quality experiences to your users. New Debugging Tools View referenced example … Continue reading “Creator Improvements in the Data Agent”

november 3, 2025 från Arshad Ali

Additional authors – Madhu Bhowal, Ashit Gosalia, Aniket Adnaik, Kevin Cheung, Sarah Battersby, Michael Park Esri is recognized as the global market leader in geographic information system (GIS) technology, location intelligence, and mapping, primarily through its flagship software, ArcGIS. Esri empowers businesses, governments, and communities to tackle the world’s most pressing challenges through spatial analysis. … Continue reading “ArcGIS GeoAnalytics for Microsoft Fabric Spark (Generally Available)”