Differences in GraphQL schema between local environment and Azure in a static web app #1941
Unanswered
cwineman-roadid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are having an issue using GraphQL with data-api-builder on a static web app. The issue is that the data types for what is returned from introspection do not match between the what runs locally using the CLI and what's hosted in Azure. The result is that a mutation query that works in our local environement doesn't work in Azure.
The main data type difference seems to be that locally UUID works, but in the Azure hosted app, everything that is marked as UUID! locally comes up as a String! in Azure. There are likely other differences as well.
I'm not sure of the best way to trouble-shoot this. Below I'll provide the response to both our local and Azure-hosted app for a schema introspection query:
Snippets from the schema introspection query on our local environment.
Parameter definition:
Scalar Types:
Snippets from the schema introspection query on our Azure environment.
Parameter definition: note that UUID has been changed to String
Scalar Types: note that both LocalTime and UUID are missing
staticwebapp.database.config.json
Below is what I think are the relevant portions of our staticwebapp.database.config.json file. As best I can tell, the file up in Azure is the same as what is being used locally.
If anyone could help me understand why this is happening it would be appreciated.
-Corey
Beta Was this translation helpful? Give feedback.
All reactions