You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in my graphql query I want to provide some types that are sourced from SQL server via Entity Framework 6 and some that are sourced from MongoDB via the Mongo.Driver.
I am using HotChocolate.AspNetCore, HotChocolate.Data.EntityFramework and HotChocolate.Data.MongoDb all at v13.0.5.
I am experiencing problems with pagination in that in order to get it to work with MongoDB I have to use .AddMongoDbPagingProviders() in the pipeline but when I do this the pagination breaks for the Entity Framework types with an exception like:
"The provided source Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[[AI.ProjectModels.Models.PPS.SQL.Worksite, AI.ProjectModels, Version=1.0.274.0, Culture=neutral, PublicKeyToken=null]] is not supported for mongo paging"
which suggests that the MongoDB paging is being engaged for all types.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, in my graphql query I want to provide some types that are sourced from SQL server via Entity Framework 6 and some that are sourced from MongoDB via the Mongo.Driver.
I am using HotChocolate.AspNetCore, HotChocolate.Data.EntityFramework and HotChocolate.Data.MongoDb all at v13.0.5.
I am experiencing problems with pagination in that in order to get it to work with MongoDB I have to use .AddMongoDbPagingProviders() in the pipeline but when I do this the pagination breaks for the Entity Framework types with an exception like:
which suggests that the MongoDB paging is being engaged for all types.
My pipeline looks like:
and my query is
Can anyone suggest the best approach for doing this? I have not been able to find much information by searching.
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions