Make more association fields nullable

This commit is contained in:
Paul Chavard 2021-03-05 10:13:22 +01:00
parent 5525fc7be8
commit 82fca8be0b
2 changed files with 6 additions and 6 deletions

View file

@ -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!
}

View file

@ -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