@Adrian Thank you for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.
I understand that you are trying to add a cosmos database connection in static webapps and hope you followed the documentation that were mentioned in this documentation.
- I see in the above shared
swa-db-connections/staticwebapp.database.config.json
file in the entities section you are not passing the container name that is present in your db from which you want to query the data using graphql from the static webapps. Can you please check and update the entities section with your container name. - Also, when you have tested this application locally, where able to query the data from the cosmos db without any issues?
- Once you deploy the application to static webapps, you need to request the root url (https://****.5.azurestaticapps.net/)of your static webapp instead of these urls (https://url.../data-api/graphql and https://url.../data-api/api).
Hope this helps and let me know if you are still facing any issues.