Create a Number Field Type

mutation {
  fields(
    boardId: "615be38975138d0001c501a7"
    dto: {
      name: "Quantity"
      description: "This is a number field type"
      type: "number"
      defaultValue: null
      unique: false
      typeData: {
        required: true
        placeholder: "Enter appropriate quantity here"
        thousandSeparator: "#,###"
        max: "120"
        min: "1"
        decimalSign: "#.#"
        hint:"numbers only"
      }
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        placeholder
        required
        thousandSeparator
        max
        min
        decimalSign
        hint
      }
      unique
      defaultValue
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "fields": {
            "id": "6175e6ab40dc970001b8f849",
            "fieldsSecret": {
                "name": "Quantity",
                "description": "This is a number field type",
                "type": "number",
                "typeData": {
                    "placeholder": "Enter appropriate quantity here",
                    "required": true,
                    "thousandSeparator": "#,###",
                    "max": "120",
                    "min": "1",
                    "decimalSign": "#.#",
                    "hint": "numbers only"
                },
                "unique": false,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Sun Oct 24 23:05:15 GMT 2021",
            "lastModifiedTime": null
        }
    }
}

Update a Number Field Type

mutation {
  updateFields(
    boardId: "615be38975138d0001c501a7"
    fieldId: "6175e6ab40dc970001b8f849"
    dto: {
      name: "Quantity"
      description: "This is an update to a number field type"
      type: "number"
      defaultValue: null
      unique: true
      typeData: {
        required: false
        placeholder: "Enter appropriate quantity here"
        thousandSeparator: "#.###"
        max: "120"
        min: "1"
        decimalSign: "#,#"
        hint:"numbers only"
      }
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        placeholder
        required
        thousandSeparator
        max
        min
        decimalSign
        hint
      }
      unique
      defaultValue
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "updateFields": {
            "id": "6175e6ab40dc970001b8f849",
            "fieldsSecret": {
                "name": "Quantity",
                "description": "This is an update to a number field type",
                "type": "number",
                "typeData": {
                    "placeholder": "Enter appropriate quantity here",
                    "required": false,
                    "thousandSeparator": "#.###",
                    "max": "120",
                    "min": "1",
                    "decimalSign": "#,#",
                    "hint": "numbers only"
                },
                "unique": true,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Sun Oct 24 23:05:15 GMT 2021",
            "lastModifiedTime": "Sun Oct 24 23:08:38 GMT 2021"
        }
    }
}

Delete a Number Field Type

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