-
Notifications
You must be signed in to change notification settings - Fork 63
Description
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
}