GraphQL.EntityFramework | Adds EntityFramework Core IQueryable support to GraphQL | GraphQL library
kandi X-RAY | GraphQL.EntityFramework Summary
kandi X-RAY | GraphQL.EntityFramework Summary
Add EntityFramework Core IQueryable support to GraphQL.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of GraphQL.EntityFramework
GraphQL.EntityFramework Key Features
GraphQL.EntityFramework Examples and Code Snippets
Community Discussions
Trending Discussions on GraphQL.EntityFramework
QUESTION
I am using below with two DbContext
s:
https://github.com/SimonCropp/GraphQL.EntityFramework
I get this error:
GraphQL.ExecutionError: Error trying to resolve project.
System.Collections.Generic.KeyNotFoundException: The given key 'Models.Master.Project' was not present in the dictionary.
at System.Collections.Generic.Dictionary
2.get_Item(TKey key)
1 query, ResolveFieldContext
at IncludeAppender.AddIncludes[TItem,TSource](IQueryable1 context) in C:\\projects\\graphql-entityframework\\src\\GraphQL.EntityFramework\\IncludeAppender.cs:line 20
2.d.MoveNext() in C:\projects\graphql-entityframework\src\GraphQL.EntityFramework\EfGraphQLService_Queryable.cs:line 80
at GraphQL.EntityFramework.EfGraphQLService.<>c__DisplayClass21_0End of stack trace from previous location where exception was thrown
at GraphQL.Instrumentation.MiddlewareResolver.Resolve(ResolveFieldContext context)
at GraphQL.Execution.ExecutionStrategy.ExecuteNodeAsync(ExecutionContext context, ExecutionNode node)End of inner exception stack trace
When I try to add two models of two DbContext
s as following in startup.cs
(in following, if I remove second line, then it works perfectly. But that I need for my second DbContext
).
ANSWER
Answered 2019-Jun-02 at 09:07this is fixed in version 6 https://github.com/SimonCropp/GraphQL.EntityFramework/blob/master/doco/configuration.md#multiple-dbcontexts
Some extra text to get over the silly 30 char min
QUESTION
I am trying to implement GraphQl with entityframework using GraphQL.EntityFramework and I am getting below error.
...ANSWER
Answered 2019-Apr-12 at 18:41Please try this in your ConfigureServices method in Startup.cs :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GraphQL.EntityFramework
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page