Skip to content

Commit

Permalink
Update staticwebapp.database.config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieyyt authored Dec 24, 2024
1 parent f22ffea commit ed13a3e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions swa-db-connections/staticwebapp.database.config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"$schema": "https://github.com/Azure/data-api-builder/releases/latest/download/dab.draft.schema.json",
"data-source": {
"database-type": "cosmosdb_nosql",
"database-type": "mssql",
"options": {
"database": "MyTestPersonDatabase",
"schema": "staticwebapp.database.schema.gql"
"set-session-context": false
},
"connection-string": "@env('DATABASE_CONNECTION_STRING')"
},
Expand All @@ -14,24 +13,24 @@
"path": "/rest"
},
"graphql": {
"allow-introspection": true,
"enabled": true,
"path": "/graphql",
"allow-introspection": true
"path": "/graphql"
},
"host": {
"mode": "production",
"cors": {
"origins": [],
"origins": ["http://localhost:4280"],
"allow-credentials": false
},
"authentication": {
"provider": "StaticWebApps"
},
"mode": "production"
}
}
},
"entities": {
"Person": {
"source": "MyTestPersonContainer",
"source": "dbo.MyTestPersonTable",
"permissions": [
{
"actions": ["*"],
Expand Down

0 comments on commit ed13a3e

Please sign in to comment.