diff --git a/app/graphql/schema.graphql b/app/graphql/schema.graphql index 76b486bec..1b789f4e2 100644 --- a/app/graphql/schema.graphql +++ b/app/graphql/schema.graphql @@ -104,9 +104,9 @@ enum AddressType { type Association { dateCreation: ISO8601Date - dateDeclaration: ISO8601Date! - datePublication: ISO8601Date! - objet: String! + dateDeclaration: ISO8601Date + datePublication: ISO8601Date + objet: String rna: String! titre: String! } diff --git a/app/graphql/types/personne_morale_type.rb b/app/graphql/types/personne_morale_type.rb index e02293bc2..fd131cf74 100644 --- a/app/graphql/types/personne_morale_type.rb +++ b/app/graphql/types/personne_morale_type.rb @@ -74,10 +74,10 @@ module Types class AssociationType < Types::BaseObject field :rna, String, null: false field :titre, String, null: false - field :objet, String, null: false + field :objet, String, null: true field :date_creation, GraphQL::Types::ISO8601Date, null: true - field :date_declaration, GraphQL::Types::ISO8601Date, null: false - field :date_publication, GraphQL::Types::ISO8601Date, null: false + field :date_declaration, GraphQL::Types::ISO8601Date, null: true + field :date_publication, GraphQL::Types::ISO8601Date, null: true end implements Types::DemandeurType