Location Field Type
Create a Location Field Type
mutation {
fields(
boardId: "6152bff8ee3a6e000130edbb"
dto: {
name: "Address"
description: "Input the address..."
type: "location"
unique: false
isVisibleOnTable: true
typeData: {
required: true
}
}
) {
id
fieldsSecret {
name
description
type
typeData {
required
field
board
}
unique
}
nameHash
boardId
createdTime
lastModifiedTime
isVisibleOnTable
position
}
}
{
"data": {
"fields": {
"id": "616ac926a648790001142e2d",
"fieldsSecret": {
"name": "Address",
"description": "Input the address...",
"type": "location",
"typeData": {
"required": true,
"field": null,
"board": null
},
"unique": false
},
"nameHash": "DD7BF230FDE8D4836917806AFF6A6B27",
"boardId": "6152bff8ee3a6e000130edbb",
"createdTime": "Sat Oct 16 12:44:22 GMT 2021",
"lastModifiedTime": null,
"isVisibleOnTable": true,
"position": 4
}
}
}
Update Location Field Type
mutation {
updateFields(
boardId: "6152bff8ee3a6e000130edbb"
fieldId: "616ac926a648790001142e2d"
dto: {
name: "Location"
description: "Input your address here..."
type: "location"
unique: true
isVisibleOnTable: true
typeData: {
required: false
}
}
) {
id
fieldsSecret {
name
description
type
typeData {
required
field
board
}
unique
}
nameHash
boardId
createdTime
lastModifiedTime
isVisibleOnTable
position
}
}
{
"data": {
"updateFields": {
"id": "616ac926a648790001142e2d",
"fieldsSecret": {
"name": "Location",
"description": "Input your address here...",
"type": "location",
"typeData": {
"required": false,
"field": null,
"board": null
},
"unique": true
},
"nameHash": "CE5BF551379459C1C61D2A204061C455",
"boardId": "6152bff8ee3a6e000130edbb",
"createdTime": "Sat Oct 16 12:44:22 GMT 2021",
"lastModifiedTime": "Sat Oct 16 12:45:40 GMT 2021",
"isVisibleOnTable": true,
"position": 4
}
}
}
Delete Location Field Type
mutation {
deleteFields(
boardId: "6152bff8ee3a6e000130edbb"
fieldId: "616ac926a648790001142e2d"
)
}
{
"data": {
"deleteFields": "SUCCESS"
}
}
Updated about 3 years ago