fix(graphql): fixing couple of n+1
This commit is contained in:
parent
18cdcecd92
commit
5f0e9f7313
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ module Loaders
|
|||
private
|
||||
|
||||
def query(keys)
|
||||
::Dossier.visible_by_administration.where(id: keys)
|
||||
::Dossier.visible_by_administration.for_api_v2.where(id: keys)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -76,7 +76,7 @@ module Types
|
|||
end
|
||||
|
||||
def groupe_instructeur
|
||||
Loaders::Record.for(GroupeInstructeur).load(object.groupe_instructeur_id)
|
||||
Loaders::Record.for(GroupeInstructeur, includes: [:procedure]).load(object.groupe_instructeur_id)
|
||||
end
|
||||
|
||||
def demandeur
|
||||
|
|
Loading…
Reference in a new issue