-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add EF Core based DataLoader sample with queries and mutation #110
Add EF Core based DataLoader sample with queries and mutation #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat - just a few minor comments
|
||
<ItemGroup> | ||
<PackageReference Include="AutoMapper" Version="7.0.1" /> | ||
<PackageReference Include="GraphQL.Conventions" Version="2.0.1" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could potentially use a project reference here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want me to include the sample project in the main .sln file? (Only in that case a project reference would be better)
|
||
public string CountryCode { get; set; } | ||
|
||
public Guid MovieId { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want this one in the schema? If you want to link to movie, perhaps having a movies { ... }
field is more useful? :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's a bit an odd FK, but I wanted a 1 to many relation to demonstrate the use of a CollectionBatchLoader
. Maybe we need to use a different use-case. Suggestions are welcome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I see. Let's leave it like this for now.
No description provided.