Auto Number

Create an Auto Number Field Type

mutation {
  fields(
    boardId: "615be38975138d0001c501a7"
    dto: {
      name: "ID-NO"
      description: "This is an Auto Number Field Type"
      type: "autoNumber"
      unique: true
      typeData: { padding: 2, starting_point: 1 }
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        padding
        starting_point
      }
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "fields": {
            "id": "6175fa2c40dc970001b8f84c",
            "fieldsSecret": {
                "name": "ID-NO",
                "description": "This is an Auto Number Field Type",
                "type": "autoNumber",
                "typeData": {
                    "padding": "2",
                    "starting_point": "1"
                }
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Mon Oct 25 00:28:28 GMT 2021",
            "lastModifiedTime": null
        }
    }
}

Update an Auto Number Field Type

mutation {
  updateFields(
    boardId: "615be38975138d0001c501a7"
    fieldId: "6175fa2c40dc970001b8f84c"
    dto: {
      name: "ID-NO"
      description: "This is an updated Auto Number Field Type"
      type: "autoNumber"
      unique: true
      typeData: { padding: 3, starting_point: 1 }
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        padding
        starting_point
      }
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "updateFields": {
            "id": "6175fa2c40dc970001b8f84c",
            "fieldsSecret": {
                "name": "ID-NO",
                "description": "This is an updated Auto Number Field Type",
                "type": "autoNumber",
                "typeData": {
                    "padding": "3",
                    "starting_point": "1"
                }
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Mon Oct 25 00:28:28 GMT 2021",
            "lastModifiedTime": "Mon Oct 25 00:30:00 GMT 2021"
        }
    }
}

Delete an Auto Number Field Type

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