fix(graphql): stub metadata on fake files interfaces

This commit is contained in:
Paul Chavard 2023-04-18 11:36:40 +02:00
parent 7c4ae3b786
commit bd07441b7e
2 changed files with 9 additions and 3 deletions

View file

@ -240,7 +240,7 @@ class API::V2::StoredQuery
...FileFragment ...FileFragment
} }
pdf { pdf {
url ...FileFragment
} }
usager { usager {
email email

View file

@ -143,7 +143,10 @@ module Types
{ {
filename: "dossier-#{object.id}.pdf", filename: "dossier-#{object.id}.pdf",
content_type: 'application/pdf', content_type: 'application/pdf',
url: Rails.application.routes.url_helpers.api_v2_dossier_pdf_url(id: sgid) url: Rails.application.routes.url_helpers.api_v2_dossier_pdf_url(id: sgid),
byte_size: 0,
byte_size_big_int: '0',
checksum: ''
} }
end end
@ -152,7 +155,10 @@ module Types
{ {
filename: "dossier-#{object.id}-features.json", filename: "dossier-#{object.id}-features.json",
content_type: 'application/json', content_type: 'application/json',
url: Rails.application.routes.url_helpers.api_v2_dossier_geojson_url(id: sgid) url: Rails.application.routes.url_helpers.api_v2_dossier_geojson_url(id: sgid),
byte_size: 0,
byte_size_big_int: '0',
checksum: ''
} }
end end