This commit is contained in:
Kara Diaby 2024-02-21 02:01:10 +00:00
parent be056a1258
commit 5488067801

View file

@ -5,10 +5,10 @@ module Types
field :body, String, 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: [
{ Extensions::Attachment => { attachment: :piece_jointe } }
{ Extensions::Attachment => { attachments: :piece_jointe, as: :single } }
]
field :attachments, [Types::File], null: false, extensions: [
{ Extensions::Attachment => { attachment: :piece_jointe, as: :multiple } }
{ Extensions::Attachment => { attachments: :piece_jointe } }
]
field :correction, CorrectionType, null: true