Record Key
Create a Record Key Field Type
mutation {
fields(
boardId: "615be38975138d0001c501a7"
dto: {
name: "S/N"
description: "This is a Record Key field type"
type: "recordKey"
unique: true
typeData: { color: "#26C5B2" }
}
) {
id
fieldsSecret {
name
description
type
typeData {
color
}
unique
}
boardId
createdTime
lastModifiedTime
}
}
{
"data": {
"fields": {
"id": "6175e2f6354d40000159d4ec",
"fieldsSecret": {
"name": "S/N",
"description": "This is a Record Key field type",
"type": "recordKey",
"typeData": {
"color": "#26C5B2"
},
"unique": true
},
"boardId": "615be38975138d0001c501a7",
"createdTime": "Sun Oct 24 22:49:26 GMT 2021",
"lastModifiedTime": null
}
}
}
Update a Record Key Field Type
mutation {
updateFields(
boardId: "615be38975138d0001c501a7"
fieldId: "6175e2f6354d40000159d4ec"
dto: {
name: "S/N"
description: "This is a Record Key field type"
type: "recordKey"
unique: true
typeData: { color: "#36C7B2" }
}
) {
id
fieldsSecret {
name
description
type
typeData {
color
}
unique
}
boardId
createdTime
lastModifiedTime
}
}
{
"data": {
"updateFields": {
"id": "6175e2f6354d40000159d4ec",
"fieldsSecret": {
"name": "S/N",
"description": "This is a Record Key field type",
"type": "recordKey",
"typeData": {
"color": "#36C7B2"
},
"unique": true
},
"boardId": "615be38975138d0001c501a7",
"createdTime": "Sun Oct 24 22:49:26 GMT 2021",
"lastModifiedTime": "Sun Oct 24 22:51:31 GMT 2021"
}
}
}
Delete a Record Key Field Type
mutation {
deleteFields(
boardId: "615be38975138d0001c501a7"
fieldId: "6175e2f6354d40000159d4ec"
)
}
{
"data": {
"deleteFields": "SUCCESS"
}
}
Updated about 3 years ago