-
Notifications
You must be signed in to change notification settings - Fork 106
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
Does not work across multiplexed queries #90
Comments
The loader itself doesn't give enough to reproduce this problem, especially when there is already a test that covers a basic use case. Could you try to provide a minimal example schema and query so that we can reproduce the bug? |
Yes I'll post here as soon as I get a minimal repro |
Unable to reproduce the issue using the test suite in this project. Going to have to punt on this for a while until I can dedicate more time |
on the same topic: is there any special cares that you have to do in order to use this library with multiplexed queries ? things like: worry about thread-safety in the code? database adapters that aren't supported? or should it just work and that's it, don't worry about this stuff? |
graphql-batch is database independent. Query multiplexing happens in the same thread, so it shouldn't cause new thread-safety issues. If it doesn't just work, then try to isolate the issue to report the issue to the appropriate project with instructions on how to reproduce the issue. |
This library is fantastic and thanks for publishing it!
In my testing, IDs are not always aggregated across multiple queries when
Schema#multiplex
is used. The promises do resolve correctly, but one DB query is made per multiplexed gql query.I found a test in this repo, which runs queries with
multiplex
and usesQueryNotifier.subscriber
to assert that only 1 query is made, but my loader does not behave.Current gem versions:
The loader in question is very simple:
The text was updated successfully, but these errors were encountered: