Short Text

Arguments

Fields

Create Short Text Field type

mutation {
  fields(
    boardId: "615be38975138d0001c501a7"
    dto: {
      name: "Name"
      description: "This is a short text field type"
      type: "shortText"
      typeData: {
        placeholder: "Enter your name"
        required: true
        transform: "CFC"
        hint: "full name"
        minLength: "2"
        maxLength: "45"
      }
      unique: true
      defaultValue: null
      dontUpdate: true
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        placeholder
        required
        transform
        hint
        minLength
        maxLength
      }
      unique
      defaultValue
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "fields": {
            "id": "61728fb040dc970001b8f0fd",
            "fieldsSecret": {
                "name": "Name",
                "description": "This is a short text field type",
                "type": "shortText",
                "typeData": {
                    "placeholder": "Enter your name",
                    "required": true,
                    "transform": "CFC",
                    "hint": "full name",
                    "minLength": "2",
                    "maxLength": "45"
                },
                "unique": true,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Fri Oct 22 10:17:20 GMT 2021",
            "lastModifiedTime": null
        }
    }
}

Update Short Text Field type

mutation {
  updateFields(
    boardId: "615be38975138d0001c501a7"
    fieldId: "61728fb040dc970001b8f0fd"
    dto: {
      name: "Company Name"
      description: "This is a short text field type"
      type: "shortText"
      typeData: {
        placeholder: "Name here"
        required: false
        transform: "CFC"
        hint: "full name"
        minLength: "1"
        maxLength: "45"
      }
      unique: true
      defaultValue: null
      dontUpdate: true
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        placeholder
        required
        transform
        hint
        minLength
        maxLength
      }
      unique
      defaultValue
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "updateFields": {
            "id": "61728fb040dc970001b8f0fd",
            "fieldsSecret": {
                "name": "Company Name",
                "description": "This is a short text field type",
                "type": "shortText",
                "typeData": {
                    "placeholder": "Name here",
                    "required": false,
                    "transform": "CFC",
                    "hint": "full name",
                    "minLength": "1",
                    "maxLength": "45"
                },
                "unique": true,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Fri Oct 22 10:17:20 GMT 2021",
            "lastModifiedTime": "Fri Oct 22 13:21:43 GMT 2021"
        }
    }
}

Delete Short Text Field type

mutation{
    deleteFields (boardId:"615be38975138d0001c501a7", fieldId:"61728fb040dc970001b8f0fd")
}
{
    "data": {
        "deleteFields": "SUCCESS"
    }
}