Commit 933628a4 authored by Emmanuel Raviart's avatar Emmanuel Raviart

Add "textAssocie" to GraphQL output of "actes législatifs".

parent c0cb9363
......@@ -1053,10 +1053,15 @@ graphql_object!(DeclarationGouvernement: Context |&self| {
&self.organe_ref
}
field texte_associe() -> &str {
field texte_associe_ref() -> &str {
&self.texte_associe
}
field texte_associe(&executor) -> Option<&Document> {
let context = &executor.context();
context.get_document_at_uid(&self.texte_associe)
}
field type_declaration() -> &Codier {
&self.type_declaration
}
......@@ -1101,10 +1106,15 @@ graphql_object!(DepotAccordInternational: Context |&self| {
&self.organe_ref
}
field texte_associe() -> &str {
field texte_associe_ref() -> &str {
&self.texte_associe
}
field texte_associe(&executor) -> Option<&Document> {
let context = &executor.context();
context.get_document_at_uid(&self.texte_associe)
}
field uid() -> &str {
&self.uid
}
......@@ -1145,10 +1155,15 @@ graphql_object!(DepotAvisConseilEtat: Context |&self| {
&self.organe_ref
}
field texte_associe() -> &str {
field texte_associe_ref() -> &str {
&self.texte_associe
}
field texte_associe(&executor) -> Option<&Document> {
let context = &executor.context();
context.get_document_at_uid(&self.texte_associe)
}
field uid() -> &str {
&self.uid
}
......@@ -1189,10 +1204,15 @@ graphql_object!(DepotInitiative: Context |&self| {
&self.organe_ref
}
field texte_associe() -> &str {
field texte_associe_ref() -> &str {
&self.texte_associe
}
field texte_associe(&executor) -> Option<&Document> {
let context = &executor.context();
context.get_document_at_uid(&self.texte_associe)
}
field uid() -> &str {
&self.uid
}
......@@ -1305,10 +1325,15 @@ graphql_object!(DepotLettreRectificative: Context |&self| {
&self.organe_ref
}
field texte_associe() -> &str {
field texte_associe_ref() -> &str {
&self.texte_associe
}
field texte_associe(&executor) -> Option<&Document> {
let context = &executor.context();
context.get_document_at_uid(&self.texte_associe)
}
field uid() -> &str {
&self.uid
}
......@@ -1452,10 +1477,15 @@ graphql_object!(DepotRapport: Context |&self| {
}
}
field texte_associe() -> &str {
field texte_associe_ref() -> &str {
&self.texte_associe
}
field texte_associe(&executor) -> Option<&Document> {
let context = &executor.context();
context.get_document_at_uid(&self.texte_associe)
}
field uid() -> &str {
&self.uid
}
......@@ -1682,10 +1712,15 @@ graphql_object!(EtudeImpact: Context |&self| {
&self.organe_ref
}
field texte_associe() -> &str {
field texte_associe_ref() -> &str {
&self.texte_associe
}
field texte_associe(&executor) -> Option<&Document> {
let context = &executor.context();
context.get_document_at_uid(&self.texte_associe)
}
field uid() -> &str {
&self.uid
}
......@@ -2124,10 +2159,15 @@ graphql_object!(RetraitInitiative: Context |&self| {
&self.organe_ref
}
field texte_associe() -> &str {
field texte_associe_ref() -> &str {
&self.texte_associe
}
field texte_associe(&executor) -> Option<&Document> {
let context = &executor.context();
context.get_document_at_uid(&self.texte_associe)
}
field uid() -> &str {
&self.uid
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment