-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amelioration(api): ajoute la configuration chorus aux API GraphQL
- Loading branch information
Martin
committed
Dec 7, 2023
1 parent
f27ef80
commit de77f6a
Showing
5 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Types | ||
class ChorusConfigurationType < Types::BaseObject | ||
field :centre_de_cout, "Le code du centre de cout auquel est rattaché la démarche.", String, null: true | ||
field :domaine_fonctionnel, "Le code du domaine fonctionnel auquel est rattaché la démarche.", String, null: true | ||
field :referentiel_de_programmation, "Le code du référentiel de programmation auquel est rattaché la démarche..", String, null: true | ||
|
||
def centre_de_cout | ||
object.centre_de_cout&.fetch("code") { '' } | ||
end | ||
|
||
def domaine_fonctionnel | ||
object.domaine_fonctionnel&.fetch("code") { '' } | ||
end | ||
|
||
def referentiel_de_programmation | ||
object.referentiel_de_programmation&.fetch("code") { '' } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters