Skip to content

One stop template for anyone wanting to create a schema first GraphQL API in .NET that connects to multiple data sources (CosmosDb, relational db, rest apis) to fetch data

License

Notifications You must be signed in to change notification settings

dotnet-azure-starters/graphql-api-cosmosdb-backend

Repository files navigation

GraphQL API With Cosmos DB Backend

What is the purpose of this template?

One stop template for anyone wanting to create a GraphQL API in .NET that connects to multiple data sources (CosmosDb, relational db, rest apis) to fetch data.

Target architecture

Target architecture

Prerequisites

Features

  • Schema first GraphQL .NET API
  • Connects to multiple CosmosDb instances to get data
  • Integrates to Azure App Insights for all logging and telemetry
  • Full scaffolding setup with resolvers for schema first GraphQL queries
  • Scaffolding for data schema and Cosmos DB repositories
  • Scaffolding for domain model
  • Domain model to data model mapping
  • Paging support when returning a large data set

TODO

  • Add support for OAuth
  • Implement the repository pattern when connecting to multiple Cosmos DB's
  • Add support to connect to other data sources such as SQL Server, MySQL etc

Please be aware, this is still work in progress and not ready for a production scenario

Any contributions or input will be much appreciated

About

One stop template for anyone wanting to create a schema first GraphQL API in .NET that connects to multiple data sources (CosmosDb, relational db, rest apis) to fetch data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published