api
This commit is contained in:
parent
be056a1258
commit
5488067801
1 changed files with 2 additions and 2 deletions
|
@ -5,10 +5,10 @@ module Types
|
||||||
field :body, String, null: false
|
field :body, String, null: false
|
||||||
field :created_at, GraphQL::Types::ISO8601DateTime, null: false
|
field :created_at, GraphQL::Types::ISO8601DateTime, null: false
|
||||||
field :attachment, Types::File, null: true, deprecation_reason: "Utilisez le champ `attachments` à la place.", extensions: [
|
field :attachment, Types::File, null: true, deprecation_reason: "Utilisez le champ `attachments` à la place.", extensions: [
|
||||||
{ Extensions::Attachment => { attachment: :piece_jointe } }
|
{ Extensions::Attachment => { attachments: :piece_jointe, as: :single } }
|
||||||
]
|
]
|
||||||
field :attachments, [Types::File], null: false, extensions: [
|
field :attachments, [Types::File], null: false, extensions: [
|
||||||
{ Extensions::Attachment => { attachment: :piece_jointe, as: :multiple } }
|
{ Extensions::Attachment => { attachments: :piece_jointe } }
|
||||||
]
|
]
|
||||||
field :correction, CorrectionType, null: true
|
field :correction, CorrectionType, null: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue