dataloader

GraphQL with ASP.NET Core (Part- X : Data Loader - Series Finale)

Read the previous part - GraphQL with ASP.NET Core (Part- IX : Entity Relations - Many to Many) Our GraphQL queries are not quite optimized. Take the Orders query from CustomerType for example, CustomerType.cs Field<ListGraphType<OrderType>, IEnumerable<Order>>() .Name("Orders") .ResolveAsync(ctx => { return dataStore.GetOrdersAsync(); }); Here, we are getting all the orders from the data store. This is all fun and games till you stay in the scaler zone of OrderType i.e. only querying the scaler properties of OrderType. But…

Keep reading