An open API service indexing awesome lists of open source software.

https://github.com/simoncropp/graphql.entityframework

Adds EntityFramework Core IQueryable support to GraphQL
https://github.com/simoncropp/graphql.entityframework

Last synced: 3 months ago
JSON representation

Adds EntityFramework Core IQueryable support to GraphQL

Awesome Lists containing this project

README

          

# GraphQL.EntityFramework

[![Build status](https://img.shields.io/appveyor/build/SimonCropp/graphql-entityframework)](https://ci.appveyor.com/project/SimonCropp/graphql-entityframework)
[![NuGet Status](https://img.shields.io/nuget/v/GraphQL.EntityFramework.svg)](https://www.nuget.org/packages/GraphQL.EntityFramework/)

Add [EntityFramework Core IQueryable](https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.dbset-1.system-linq-iqueryable-provider) support to [GraphQL](https://github.com/graphql-dotnet/graphql-dotnet)

## Features

- **Automatic Query Generation** - Maps GraphQL queries to EF Core queries
- **Smart Projections** - Only loads requested fields from the database for optimal performance
- **Foreign Key Inclusion** - Automatically includes primary and foreign keys in projections for reliable custom resolvers
- **Filtering & Sorting** - Built-in support for complex `where`, `orderBy`, `skip`, and `take` arguments
- **Pagination** - GraphQL Relay connection specification support with `first`/`after` and `last`/`before`
- **Navigation Properties** - Automatic includes based on requested GraphQL fields
- **Multi-Context Support** - Use multiple DbContext types in the same GraphQL schema

**See [Milestones](../../milestones?state=closed) for release notes.**

## Sponsors

### Entity Framework Extensions

[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=GraphQL.EntityFramework) is a major sponsor and is proud to contribute to the development this project.

[![Entity Framework Extensions](https://raw.githubusercontent.com/SimonCropp/GraphQL.EntityFramework/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=GraphQL.EntityFramework)

### Developed using JetBrains IDEs

[![JetBrains logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)](https://jb.gg/OpenSourceSupport)

## NuGet package

https://nuget.org/packages/GraphQL.EntityFramework/

## Documentation

* [Configuration](/docs/configuration.md)
* [Defining Graphs](/docs/defining-graphs.md)
* [Query Usage](/docs/query-usage.md)
* [Filters](/docs/filters.md)

## Icon

[Memory](https://thenounproject.com/term/database/1631008/) designed by H Alberto Gongora from [The Noun Project](https://thenounproject.com)