Replies: 1 comment 2 replies
-
@Azagatoth DataLoader only fetch the data once based on the ID. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have three tables in my database that are connected as a many to many relation.
They are called Asset, MeterPoint and AssetMeterPointMember.
When performing this query I get an unexpected result:
Database
There are 79 MeterPoints.
53 of those have Assets connected through AssetMeterPointMember.
There are 88 Assets and 80 of those are connected to a MeterPoint.
GraphQl
Keys = primary keys for the database.
-> = Are sent to GroupDataLoader.
79 keys -> AssetMeterPointMember GroupDataLoader in MeterPoint (correct)
80 keys -> Asset GroupDataLoader in AssetMeterPointMember (correct)
13 keys -> AssetMeterPointMember GroupDataLoader in Asset (incorrect)
The 13 keys are always fetched from the newest data, but there are some keys left out, so no logic there.
46 keys -> MeterPoint GroupDataLoader from AssetMeterPointMember (incorrect)
Expected
I would expect to have at least the same amount of keys going up again in the hierarchy.
Can someone please explain what might cause this.
Beta Was this translation helpful? Give feedback.
All reactions