Replies: 14 comments
-
Sorry I am not understanding your question. I suspect you may be talking about aspects of https://www.graphql-java.com/blog/deep-dive-data-fetcher-results An example set of queries might help others understand your question |
Beta Was this translation helpful? Give feedback.
-
i have write the prefetch in my first version, but entity has many relation, because the datafetch could load with key batch, the performance is good |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
and then i fetch the result and group the entity by key and do some transfer to the result, for example, the dataloader require one key map to one entity, i have to wrap the result into an entity. that code is ugly |
Beta Was this translation helpful? Give feedback.
-
for my example, one user has many open id, the loader load with userid and filter with some parameter and group by userid and wrap to an entity has an list open id |
Beta Was this translation helpful? Give feedback.
-
i thought the dataloader can pass and retrive the context may give some help @bbakerman |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
the list result wrapper can't avoid, and can wrapped by a common class for example pair in kotlin. when the dataloader provider the context, the idwrapper may avoid |
Beta Was this translation helpful? Give feedback.
-
the sub field may load with condition, but the data loader only load with key, for example the teacher has list of student, but i want to filter the student which live in newyork or anything else. i could wrap the id in an entity with the filter and combine the id and use the filter, but it need more work
Beta Was this translation helpful? Give feedback.
All reactions