Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
After SWA recently updated DAB, nested GraphQL queries towards CosmosDB stopped working. All queries fail with "The given key 'xxx' was not present in the dictionary.", where 'xxx' is the nested object.
It is also still working fine using the SWA emulator locally, but fails once deployed to SWA.
After SWA recently updated DAB, nested GraphQL queries towards CosmosDB stopped working. All queries fail with "The given key 'xxx' was not present in the dictionary.", where 'xxx' is the nested object.
It is also still working fine using the SWA emulator locally, but fails once deployed to SWA.
To Reproduce We have a model similar to the Series schema in the GraphQL documentation: https://learn.microsoft.com/en-us/azure/data-api-builder/reference-database-specific-features#schema-in-api-for-nosql
Our model looks like this:
When this is deployed to a server, any requests trying to retrieve anything (even without including the "Body") fails with:
Expected behavior Previously this worked fine and we were able to retrieve data. It is also still working fine using the SWA emulator locally.
It is however not working fine once deployed.