Skip to content
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

Merged
merged 15 commits into from
Oct 23, 2018

Conversation

huysentruitw
Copy link
Contributor

No description provided.

Copy link
Collaborator

@tlil tlil left a 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" />
Copy link
Collaborator

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?

Copy link
Contributor Author

@huysentruitw huysentruitw Oct 21, 2018

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; }
Copy link
Collaborator

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? :-)

Copy link
Contributor Author

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.

Copy link
Collaborator

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.

@tlil tlil merged commit 8d0e790 into graphql-dotnet:master Oct 23, 2018
@huysentruitw huysentruitw deleted the sample/dataloader-efcore branch February 8, 2019 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants