Replies: 1 comment 2 replies
-
Doesn't your But that would only solve it for one element, I assume you return multiple "things" which each have their |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a table with a column called image_ids. It is of type json, an array of ids. The column is not configured as a relation. However it is a relation to the table images. So each of the image_ids exist in the table images. How can I eager load those so I don't have to query each when requesting it? Currently I have a custom resolve for the images field in my Type. Like this:
As you can see for each id in the image_ids, I query the image.
However this is less than optimal since it won't be eager loaded and the performance tanks.
Beta Was this translation helpful? Give feedback.
All reactions