Skip to content

Queries not compatible with EF6 #363

@wonglae

Description

@wonglae

As we verified below query doesn't work in EF 6 (.Net Core) but working on EF core.

Query = "{ people { foods { id } } }"

Field 'people' - LINQ to Entities does not recognize the method 'System.Collections.Generic.List1[Dynamic_foods_c144bbbb-c568-462d-9908-1ed4b47af815] ToListWithNullCheck[Dynamic_foods_c144bbbb-c568-462d-9908-1ed4b47af815](System.Collections.Generic.IEnumerable1[Dynamic_foods_c144bbbb-c568-462d-9908-1ed4b47af815], Boolean)' method, and this method cannot be translated into a store expression.

DB schema:

type Query {
configuration: DbContextConfiguration
"""Return a Food by its Id"""
food(id: Int!): Food
foods: [Food!]
people: [Person!]
"""Return a Person by its Id"""
person(id: Int!): Person
}

type DbContextConfiguration {
autoDetectChangesEnabled: Boolean!
disableFilterOverProjectionSimplificationForCustomFunctions: Boolean!
ensureTransactionsForFunctionsAndCommands: Boolean!
lazyLoadingEnabled: Boolean!
proxyCreationEnabled: Boolean!
useDatabaseNullSemantics: Boolean!
validateOnSaveEnabled: Boolean!
}

type Food {
id: Int!
name: String
person: Person!
}

type Person {
"""Return a Food by its Id"""
food(id: Int!): Food
foods: [Food!]
id: Int!
name: String
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions