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

Fix the docs for ResolveScopedAsync #2849

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

jeffw-wherethebitsroam
Copy link
Contributor

The docs for ResolveScopedAsync had incorrect code, so I had to go look at the source. This should now be correct.

return db.Products.Where(x => x.CategoryId == context.Source.Id).ToListAsync();
});
}
}
```

In this case `context.RequestServices` will be an `IServiceProvider` in a newly created scope.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in a newly created

In general yes but it's up to implementation/caller side how to set context.RequestServices.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Shane32 If OK, merge when you want.

@sungam3r sungam3r added the documentation An issue or pull request regarding documentation improvements label Jan 10, 2022
@Shane32 Shane32 merged commit 1de236f into graphql-dotnet:master Jan 10, 2022
@Shane32
Copy link
Member

Shane32 commented Jan 10, 2022

Thanks @jeffw-wherethebitsroam !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation An issue or pull request regarding documentation improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants