add expert profile to api
This commit is contained in:
parent
d47fde3fcb
commit
a710116371
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ class API::V2::Schema < GraphQL::Schema
|
||||||
Types::DossierType
|
Types::DossierType
|
||||||
when Commentaire
|
when Commentaire
|
||||||
Types::MessageType
|
Types::MessageType
|
||||||
when Instructeur, User
|
when Instructeur, User, Expert
|
||||||
Types::ProfileType
|
Types::ProfileType
|
||||||
when Individual
|
when Individual
|
||||||
Types::PersonnePhysiqueType
|
Types::PersonnePhysiqueType
|
||||||
|
|
|
@ -12,6 +12,6 @@ module Types
|
||||||
]
|
]
|
||||||
|
|
||||||
field :instructeur, Types::ProfileType, null: false, method: :claimant
|
field :instructeur, Types::ProfileType, null: false, method: :claimant
|
||||||
field :expert, Types::ProfileType, null: true, method: :instructeur
|
field :expert, Types::ProfileType, null: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue