add expert profile to api

This commit is contained in:
kara Diaby 2021-02-25 09:32:23 +01:00
parent d47fde3fcb
commit a710116371
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ class API::V2::Schema < GraphQL::Schema
Types::DossierType
when Commentaire
Types::MessageType
when Instructeur, User
when Instructeur, User, Expert
Types::ProfileType
when Individual
Types::PersonnePhysiqueType

View file

@ -12,6 +12,6 @@ module Types
]
field :instructeur, Types::ProfileType, null: false, method: :claimant
field :expert, Types::ProfileType, null: true, method: :instructeur
field :expert, Types::ProfileType, null: true
end
end