Merge pull request #5020 from tchak/fix-graphql-groupe-instructeur-type
[GraphQL] fix groupe instructeur type definition
This commit is contained in:
commit
7e806f191c
1 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,6 @@ module Types
|
||||||
global_id_field :id
|
global_id_field :id
|
||||||
field :label, String, null: false
|
field :label, String, null: false
|
||||||
field :instructeurs, [Types::ProfileType], null: false
|
field :instructeurs, [Types::ProfileType], null: false
|
||||||
end
|
|
||||||
|
|
||||||
def instructeurs
|
def instructeurs
|
||||||
Loaders::Association.for(object.class, :instructeurs).load(object)
|
Loaders::Association.for(object.class, :instructeurs).load(object)
|
||||||
|
@ -15,3 +14,4 @@ module Types
|
||||||
authorized_demarche?(object.procedure, context)
|
authorized_demarche?(object.procedure, context)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue