Can we avoid dataloaders at all? #64
Unanswered
frederikhors
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hey @frederikhors, you're everywhere hahaaa :) May I ask why dataloaders are a bad thing thus to be avoided? CC @karatakis |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'd love to hear your feedback as you play around more! Terminology might be different, but Seaography works in a similar way to tackle the N+1 problem If you try the example, {
film(pagination: { limit: 10, page: 0 }, orderBy: { title: ASC }) {
data {
title
description
releaseYear
filmActor {
actor {
firstName
lastName
}
}
}
}
} Only 3 queries are executed: once from (actually there is a 4th for pagination, but definitely not N+1) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can we do the same as https://entgo.io/docs/tutorial-todo-gql-field-collection?
Basically it would be great to have the option to avoid dataloaders altogether.
Beta Was this translation helpful? Give feedback.
All reactions