- Query data across Fabric Lakehouses, Warehouses, and SQL databases through a single GraphQL endpoint
- Query mirrored databases (Azure SQL, Cosmos DB, Snowflake, Databricks) without managing per-source drivers
- Create, update, and delete rows in SQL database tables and views, and invoke stored procedures, via GraphQL mutations
- Fetch related data in one request through configured one-to-one, one-to-many, and many-to-many relationships
Common use cases and example apps
How Microsoft Fabric connections work
The connector talks to a single API for GraphQL item in your Fabric workspace. The tables, views, and relationships you add to that item become GraphQL types your app can query, so creating the item and adding your data to it is a prerequisite. Authentication uses OAuth2 client credentials with a Microsoft Entra service principal. Lovable exchanges the service principal’s credentials for a Fabric token with the scopehttps://api.fabric.microsoft.com/.default, so the connection can do exactly what the service principal has been granted in Fabric, nothing more.
What this means for data access
The service principal’s permissions determine what data is available to everyone who uses the connection. There is no per-user Microsoft login: every app and builder on the connection queries Fabric as the same principal. To segment access, create separate service principals or separate API for GraphQL items, each with its own Lovable connection. Microsoft Fabric uses Lovable’s gateway architecture for secure credential handling and automatic token refresh. See Gateway-based connectors for details on authentication and usage limits.How to connect Microsoft Fabric
Who can create Microsoft Fabric connections depends on your plan and workspace settings. App + chat connectors are available by default on Free, Pro, and Business plans. On Enterprise plans, they are effectively disabled at first: Who can create connections and clients defaults to No one until an admin changes it in Connectors → Admin settings → App + chat connectors.Prerequisites
Before connecting, make sure you have:- A Microsoft Fabric workspace with an API for GraphQL item, with the Lakehouse, Warehouse, SQL database, or KQL database data you want to use added to it
- A Microsoft Entra service principal and a client secret for it
- A Fabric tenant admin who can enable Service principals can use Fabric APIs, if it is not already enabled
- Introspection enabled on the API for GraphQL item (a Fabric workspace admin can enable it)
- Permission to create connections in your Lovable workspace (see Who can create connections and clients)
Step 1: Set up Microsoft Entra and Fabric
Step 1 has two parts: create a service principal in Microsoft Entra, then prepare the API for GraphQL item in Fabric. Your app cannot connect until both are complete.Create a service principal in Microsoft Entra
Register an application
Note the tenant and client IDs
Create a client secret
Prepare the API for GraphQL item in Fabric
Allow service principals to use Fabric APIs
Create or open the API for GraphQL item
Grant the service principal access
Enable introspection
Copy the endpoint URL
https://api.fabric.microsoft.com/v1/workspaces/<workspace-id>/graphqlapis/<api-id>/graphql and always ends in /graphql.Step 2: Connect Microsoft Fabric to Lovable
Open Microsoft Fabric in Connectors
Add a connection
Name the connection
Fabric Analytics).Enter your credentials
- Microsoft Entra Tenant ID: the Directory (tenant) ID from your Microsoft Entra tenant
- Service Principal Client ID: the Application (client) ID of the service principal
- Client Secret: the client secret value you generated for the service principal
- Fabric GraphQL Endpoint: the full URL you copied from the API for GraphQL item, for example
https://api.fabric.microsoft.com/v1/workspaces/<workspace-id>/graphqlapis/<api-id>/graphql. The URL must end in/graphql.
Choose who can use this connection
- Only you (default): only the person creating the connection can use it and its associated data.
- Invite specific people: only you and explicitly added workspace members can use the connection and its associated data.
- Invite entire workspace: click Invite entire workspace to make the connection available to everyone in your Lovable workspace.
Connect
Limitations
- GraphQL API only. The connector calls your API for GraphQL item and nothing else: no Fabric REST API, no direct SQL or KQL endpoints, no OneLake file access. A table your app needs must be added to the API item first.
- Writes work on SQL stores only. Create, update, delete, and stored procedure calls work against Fabric Warehouses, Fabric SQL databases, and Azure SQL databases. Lakehouses, KQL databases, and all mirrored sources are read-only.
- The schema is what the API item owner exposed. Your app sees the tables, views, and relationships added to the API for GraphQL item, with the permissions granted to the service principal, and nothing more.
- Platform ceilings. Fabric returns at most 100,000 rows per query across all pages, caps responses at 64 MB, and times out requests after 100 seconds.
- No per-end-user Microsoft login. Everything built on a connection queries Fabric through the same shared service principal. Create separate connections with separate service principals to segment access.
Troubleshooting
Lovable verifies every Microsoft Fabric connection the moment you click Connect, so failures surface immediately and trace back to configuration in Fabric or Microsoft Entra. These are the most common:The connection fails immediately after clicking Connect
The connection fails immediately after clicking Connect
Microsoft Fabric rejected the service principal (HTTP 401 or 403)
Microsoft Fabric rejected the service principal (HTTP 401 or 403)
The connection test returns an empty response
The connection test returns an empty response
Microsoft Fabric could not find the GraphQL endpoint (HTTP 404)
Microsoft Fabric could not find the GraphQL endpoint (HTTP 404)
/graphql.Manage your connection
Connections are managed from Connectors: select , then open the connection.- Unlink projects to remove access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
- Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use stop working until a new connection is added. See Delete a connection for the steps and who can delete.