Forum Discussion

ati_puri's avatar
ati_puri
Resolver III
6 months ago
Solved

Sending data outside Fabric

Hi Team,   Few questions around GrapghQL API:   1 )Can we create a 'writeAPI' using GRAPHQL in Fabric?  2) Do we have these security policies/validations while creating GRAPHQL APIs: Securit...
  • deborshi_nag's avatar
    6 months ago

    Hello ati_puri 

     

    1) GraphQL does indeed support mutations (write operations). However, data sources accessed via SQL Analytics Endpoints are read-only and therefore only allow queries (read operations). For Data Warehouses, a primary key must be defined in order for mutations to be generated automatically.

    For further details, please see the GraphQL FAQ:

    Microsoft Fabric API for GraphQL FAQ - Microsoft Fabric | Microsoft Learn

     

    2) It is advisable to place your GraphQL API behind Azure API Management and implement security policies there. Through APIM, you can configure or validate settings such as Content-Type, HTTP OPTIONS, WWW-Authenticate, Cache-Control, and CORS, among others.

     

    3) For source control, it is best practice to branch the API for your GraphQL item and promote it through different environments, rather than creating multiple versioned GraphQL endpoints.

     

    4) Currently, the JSONB format is not supported.