-
Notifications
You must be signed in to change notification settings - Fork 65
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
DataLoader arbitrary queries? #2
Labels
question
Further information is requested
Comments
I think it would be useful. I implemented it myself adding this code block to
I also modified
|
devileye98
referenced
this issue
in devileye98/apollov4-datasource-mongodb
Aug 1, 2023
Updated README
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We could combine queries with an
$or
like in @pcorey's article:http://www.petecorey.com/blog/2017/08/21/advanced-mongodb-query-batching-with-dataloader-and-sift/
How useful is that? We'd have fewer network requests to the server, but I imagine the bulk of the work is the query itself, which I don't imagine is actually getting simpler/faster. And memoization is great, but how likely is a repeat arbitrary query? In the case of
findById
it's clearly a common occurrence.The text was updated successfully, but these errors were encountered: