veksen
02/09/2018, 1:07 AMinterface Field {
id: ID! @unique
name: String!
type: String!
}
type StringField implements Field {
id: ID! @unique
name: String!
type: String!
value: String!
}
type IntField implements Field {
id: ID! @unique
name: String!
type: String!
value: Int!
}
# union FieldValue = StringField | DateTime | IntField | Float | Boolean
union FieldValue = StringField | IntField
type Form {
id: ID! @unique
name: String!
author: User!
kiosk: Kiosk!
fields: [FieldValue!]!
}
max
02/09/2018, 8:59 AMveksen
02/11/2018, 3:31 AMmohawk2
02/17/2018, 8:30 PMtype
to be an enum!
, not a String!