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
- Host: GitHub
- URL: https://github.com/simoncropp/graphql.entityframework
- Owner: SimonCropp
- License: mit
- Created: 2018-07-12T00:47:31.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-05-13T09:35:38.000Z (about 1 year ago)
- Last Synced: 2025-05-14T08:08:30.028Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 3.15 MB
- Stars: 392
- Watchers: 17
- Forks: 63
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.txt
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
README
#
GraphQL.EntityFramework
[](https://ci.appveyor.com/project/SimonCropp/graphql-entityframework)
[](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.
[](https://entityframework-extensions.net/?utm_source=simoncropp&utm_medium=GraphQL.EntityFramework)
### Developed using JetBrains IDEs
[](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)