Link Field Type

Create a Link Field Type

mutation {
  fields(
    boardId: "6152bff8ee3a6e000130edbb"
    dto: {
    name: "Website"
    description: "This is the list of official websites"
    type: "link"
    defaultValue: null
    unique: false
    isVisibleOnTable: true
    typeData: {
    hint: "websites links"
    placeholder: "enter website here "
    required: true
  } 
}
  ) {
    id
    fieldsSecret {
      name
      typeData {
        required
        hint
        placeholder
      }
      unique
      defaultValue
      dontUpdate
    }
    boardId
    createdTime
    nameHash
    isVisibleOnTable
    position
  }
}
{
    "data": {
        "fields": {
            "id": "616895da02e3810001d595ea",
            "fieldsSecret": {
                "name": "Website",
                "typeData": {
                    "required": true,
                    "hint": "websites links",
                    "placeholder": "enter website here "
                },
                "unique": false,
                "defaultValue": null,
                "dontUpdate": false
            },
            "boardId": "6152bff8ee3a6e000130edbb",
            "createdTime": "Thu Oct 14 20:40:58 GMT 2021",
            "nameHash": "15BBB9D0BBF25E8D2978DE1168C749DC",
            "isVisibleOnTable": true,
            "position": 16
        }
    }
}

Update a Link Field Type

mutation {
  updateFields(
    boardId: "6152bff8ee3a6e000130edbb"
    fieldId:"616895da02e3810001d595ea"
    dto: {
    name: "Personal Websites"
    description: "This is the list of personal websites"
    type: "link"
    defaultValue: null
    unique: true
    isVisibleOnTable: true
    typeData: {
    hint: "portfolio links"
    placeholder: "enter website here "
    required: true
  } 
}
  ) {
    id
    fieldsSecret {
      name
      typeData {
        required
        hint
        placeholder
      }
      unique
      defaultValue
      dontUpdate
    }
    boardId
    createdTime
    nameHash
    isVisibleOnTable
    position
  }
}
{
    "data": {
        "updateFields": {
            "id": "616895da02e3810001d595ea",
            "fieldsSecret": {
                "name": "Personal Websites",
                "typeData": {
                    "required": true,
                    "hint": "portfolio links",
                    "placeholder": "enter website here "
                },
                "unique": true,
                "defaultValue": null,
                "dontUpdate": false
            },
            "boardId": "6152bff8ee3a6e000130edbb",
            "createdTime": "Thu Oct 14 20:40:58 GMT 2021",
            "nameHash": "FFA5F69543CB919FDE4774AC5DFFD894",
            "isVisibleOnTable": true,
            "position": 16
        }
    }
}

Delete Link Field Type

mutation {
  deleteFields(
    boardId: "6152bff8ee3a6e000130edbb"
    fieldId:"616895da02e3810001d595ea"
    )
}
{
    "data": {
        "deleteFields": "SUCCESS"
    }
}