Skip to main content

All Questions

Tagged with
0 votes
0 answers
19 views

Use Mutation in GraphQL with Chocolate

How can I solve the next error in GraphQL and C#, Query, Models, etc, works, but no Mutation, I don have any Idea for fixed it this, all code is correct but contnues ask me about Errors and about ...
user75463's user avatar
  • 109
1 vote
1 answer
246 views

The LINQ expression OrderBy DateTimeOffset.DateTime could not be translated

I have a .NET Core project in which I have implemented this GraphQL query. The query works correctly, but the sorting by date is not working. [UsePaging(MaxPageSize = 200, IncludeTotalCount = true)] [...
AmD's user avatar
  • 449
0 votes
0 answers
29 views

How to avoid manual inlining inside LINQ query to use as an expression and convert to SQL [duplicate]

I am trying to do some projections in LINQ to convert to DTOs. The goal is to do it with expressions so that it is translated directly to SQL. It works perfectly if I do everything inlined like this : ...
Yutsa's user avatar
  • 325
0 votes
2 answers
138 views

EF Cannot be translated

i have problem with translated query, ToList(), AsEnumerable etc. I need construct or create query which is shared. Branches -> Customer -> some collection -> some collection Customer -> ...
Patrik Urban's user avatar
0 votes
0 answers
123 views

System.ObjectDisposedException is thrown on performing ToList()

Code where the error occurs: on ToList method the exemption is thrown public List<Product> GetAllProducts() { var allProducts = _dbContext.Products.ToList(); return allProducts; ...
vicky tr's user avatar
0 votes
1 answer
227 views

Q: How to form LINQ query to access nested attributes within class to display on Blazor WASM application

My apologies for the vast amount of code, but it is necessary for the context of the problem. I am faced with an interesting dilemma that I have not been able to solve. I am trying to access ...
tudor14's user avatar
  • 95
0 votes
1 answer
639 views

Dynamic Linq nested Select on collection property

We are using GraphQL Dotnet in a dotnet core 5.0 API. We have a relational data structure like this Organisation --> (Zero or many) Employers --> (Zero or many) Departments. In an attempt to ...
Mark McGookin's user avatar
-1 votes
1 answer
97 views

How to get two fields with the same Id

I need to send two fields with the same Id in Altair(GraphQl). mutation{ createGoodsOrder(goodsorder: { deliveryDate: "2019-10-10" goodsOrderItems: [ { orderItemId: 54 quantity: 1 ...
Dmytro Kozyr's user avatar
3 votes
1 answer
3k views

EF Core "InvalidOperationException: Include has been used on non entity queryable" for navigation property even after explicit include

I've created a sample project which uses the following packages - GraphQL GraphQL.EntityFramework System.Linq.Dynamic.Core The idea here is to translate the selection done in the GraphQL query and ...
Soham Dasgupta's user avatar