Arguments

Fields

x

Create a Long Text Field type

mutation {
  fields(
    boardId: "615be38975138d0001c501a7"
    dto: {
      name: "Full Description"
      description: "This is a long text field type"
      type: "longText"
      typeData: {
        placeholder: "comment here"
        required: true
        transform: "CEW"
        hint: "full name"
        minLength: "2"
        maxLength: "100"
      }
      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": "6175d791354d40000159d4e8",
            "fieldsSecret": {
                "name": "Full Description",
                "description": "This is a long text field type",
                "type": "longText",
                "typeData": {
                    "placeholder": "comment here",
                    "required": true,
                    "transform": "CEW",
                    "hint": "full name",
                    "minLength": "2",
                    "maxLength": "100"
                },
                "unique": true,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Sun Oct 24 22:00:49 GMT 2021",
            "lastModifiedTime": null
        }
    }
}

Update a Long Text Field type

mutation {
  updateFields(
    boardId: "615be38975138d0001c501a7"
    fieldId:"6175d791354d40000159d4e8"
    dto: {
      name: "Comment"
      description: "This is an updated long text field type"
      type: "longText"
      typeData: {
        placeholder: "state all comments here with pictures and text"
        required: true
        transform: "CFW"
        hint: "All comments"
        minLength: "10"
        maxLength: "1000"
      }
      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": "6175d791354d40000159d4e8",
            "fieldsSecret": {
                "name": "Comment",
                "description": "This is an updated long text field type",
                "type": "longText",
                "typeData": {
                    "placeholder": "state all comments here with pictures and text",
                    "required": true,
                    "transform": "CFW",
                    "hint": "All comments",
                    "minLength": "10",
                    "maxLength": "1000"
                },
                "unique": true,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Sun Oct 24 22:00:49 GMT 2021",
            "lastModifiedTime": "Sun Oct 24 22:02:41 GMT 2021"
        }
    }
}

Delete a Long Text Field type

mutation {
  deleteFields(
    boardId: "615be38975138d0001c501a7"
    fieldId:"6175d791354d40000159d4e8"
  )
}
{
    "data": {
        "deleteFields": "SUCCESS"
    }
}