feat(graphql): add pays champ to API

This commit is contained in:
Paul Chavard 2022-12-21 17:35:05 +01:00
parent 5a7ddd52d2
commit 072156d38e
6 changed files with 53 additions and 6 deletions

View file

@ -59,6 +59,7 @@ class API::V2::Schema < GraphQL::Schema
Types::Champs::IntegerNumberChampType,
Types::Champs::LinkedDropDownListChampType,
Types::Champs::MultipleDropDownListChampType,
Types::Champs::PaysChampType,
Types::Champs::PieceJustificativeChampType,
Types::Champs::RegionChampType,
Types::Champs::RepetitionChampType,

View file

@ -454,6 +454,12 @@ class API::V2::StoredQuery
code
}
}
... on PaysChamp {
pays {
name
code
}
}
... on SiretChamp {
etablissement {
...PersonneMoraleFragment