Merge pull request #5963 from tchak/fix-association-serilizer
Make more association fields nullable
This commit is contained in:
commit
bdcce19841
2 changed files with 6 additions and 6 deletions
|
@ -104,9 +104,9 @@ enum AddressType {
|
||||||
|
|
||||||
type Association {
|
type Association {
|
||||||
dateCreation: ISO8601Date
|
dateCreation: ISO8601Date
|
||||||
dateDeclaration: ISO8601Date!
|
dateDeclaration: ISO8601Date
|
||||||
datePublication: ISO8601Date!
|
datePublication: ISO8601Date
|
||||||
objet: String!
|
objet: String
|
||||||
rna: String!
|
rna: String!
|
||||||
titre: String!
|
titre: String!
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,10 +74,10 @@ module Types
|
||||||
class AssociationType < Types::BaseObject
|
class AssociationType < Types::BaseObject
|
||||||
field :rna, String, null: false
|
field :rna, String, null: false
|
||||||
field :titre, 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_creation, GraphQL::Types::ISO8601Date, null: true
|
||||||
field :date_declaration, GraphQL::Types::ISO8601Date, null: false
|
field :date_declaration, GraphQL::Types::ISO8601Date, null: true
|
||||||
field :date_publication, GraphQL::Types::ISO8601Date, null: false
|
field :date_publication, GraphQL::Types::ISO8601Date, null: true
|
||||||
end
|
end
|
||||||
|
|
||||||
implements Types::DemandeurType
|
implements Types::DemandeurType
|
||||||
|
|
Loading…
Reference in a new issue