Open Taucher2003 opened 4 months ago
Our current tooling against N+1 queries uses lookahead_field defined on the BaseObject. https://github.com/code0-tech/sagittarius/blob/9e00268087ca3d458123f80c83745e48437c9b94/app/graphql/types/base_object.rb#L20-L34
lookahead_field
BaseObject
With this setup, the configuration for preloads has to be done on every type that includes the type affected by N+1 queries.
This should either be moved to resolvers or some custom tooling that defines the preloads on the affected type directly.
Our current tooling against N+1 queries uses
lookahead_field
defined on theBaseObject
. https://github.com/code0-tech/sagittarius/blob/9e00268087ca3d458123f80c83745e48437c9b94/app/graphql/types/base_object.rb#L20-L34With this setup, the configuration for preloads has to be done on every type that includes the type affected by N+1 queries.
This should either be moved to resolvers or some custom tooling that defines the preloads on the affected type directly.