Checkbox Field Type
Create a Checkbox Field Type
mutation {
fields(
boardId: "6152bff8ee3a6e000130edbb"
dto: {
name: "Amount"
description: null
type: "money"
defaultValue: null
unique: false
isVisibleOnTable: true
typeData: {
hint: "amount in dollars"
min: "2300"
max: "50000"
placeholder: "Enter the amount here"
currency: "USD"
thousandSeparator: "#,###"
required: true
}
}
) {
id
fieldsSecret {
name
typeData {
required
hint
min
max
placeholder
currency
thousandSeparator
}
unique
}
createdTime
nameHash
isVisibleOnTable
boardId
position
}
}
{
"data": {
"fields": {
"id": "616acf76c5e26900013033e5",
"fieldsSecret": {
"name": "Amount",
"typeData": {
"required": true,
"hint": "amount in dollars",
"min": "2300",
"max": "50000",
"placeholder": "Enter the amount here",
"currency": "USD",
"thousandSeparator": "#,###"
},
"unique": false
},
"createdTime": "Sat Oct 16 13:11:18 GMT 2021",
"nameHash": "B2F40690858B404ED10E62BDF422C704",
"isVisibleOnTable": true,
"boardId": "6152bff8ee3a6e000130edbb",
"position": 6
}
}
}
Update a Money Field Type
mutation {
updateFields(
boardId: "6152bff8ee3a6e000130edbb"
fieldId: "616acf76c5e26900013033e5"
dto: {
name: "Cost"
description: "This is the cost of a product"
type: "money"
defaultValue: null
unique: true
isVisibleOnTable: true
typeData: {
hint: "amount in dollars"
min: "2300"
max: "50000"
placeholder: "Enter the amount here"
currency: "USD"
thousandSeparator: "#,###"
required: true
}
}
) {
id
fieldsSecret {
name
typeData {
required
hint
min
max
placeholder
currency
thousandSeparator
}
unique
}
createdTime
nameHash
isVisibleOnTable
boardId
position
}
}
{
"data": {
"updateFields": {
"id": "616acf76c5e26900013033e5",
"fieldsSecret": {
"name": "Cost",
"typeData": {
"required": true,
"hint": "amount in dollars",
"min": "2300",
"max": "50000",
"placeholder": "Enter the amount here",
"currency": "USD",
"thousandSeparator": "#,###"
},
"unique": true
},
"createdTime": "Sat Oct 16 13:11:18 GMT 2021",
"nameHash": "20B4F77BD00B4F63A49EC8E08F3BF6A6",
"isVisibleOnTable": true,
"boardId": "6152bff8ee3a6e000130edbb",
"position": 6
}
}
}
Delete a Money Field Type
mutation {
deleteFields(
boardId: "6152bff8ee3a6e000130edbb"
fieldId: "616acf76c5e26900013033e5"
)
}
{
"data": {
"deleteFields": "SUCCESS"
}
}
Updated about 3 years ago