entity relationship

GraphQL with ASP.NET Core (Part- VIII : Entity Relations - One to Many)

Read the previous part - GraphQL with ASP.NET Core (Part- VII : Mutation) Building a GraphQL end-point with a single entity ain't gonna cut it. In this post, we introduce two new entities for handling orders for a customer. The relationship between Customer and Order is one-to-many i.e. A customer can have one or many orders, whereas a particular order belongs to a single customer. You can configure entity relationship following entity framework conventions. Entity framework will auto-create a one-to-many relationship between entities if one of the entity contains…

Keep reading