Email Field Type

Create an Email Field Type

mutation {
  fields(
    boardId: "615be38975138d0001c501a7"
    dto: {
      name: "Email"
      description: "This is an email field type"
      type: "email"
      defaultValue: null
      unique: false
      typeData: {
        hint: "emails only"
        placeholder: "Add your email here"
        required: true
      }
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        placeholder
        required
        hint
      }
      unique
      defaultValue
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "fields": {
            "id": "6175df3c40dc970001b8f848",
            "fieldsSecret": {
                "name": "Email",
                "description": "This is an email field type",
                "type": "email",
                "typeData": {
                    "placeholder": "Add your email here",
                    "required": true,
                    "hint": "emails only"
                },
                "unique": false,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Sun Oct 24 22:33:32 GMT 2021",
            "lastModifiedTime": null
        }
    }
}

Update an Email Field Type

mutation {
  updateFields(
    boardId: "615be38975138d0001c501a7"
    fieldId: "6175df3c40dc970001b8f848"
    dto: {
      name: "Email Address"
      description: "This is an email field type"
      type: "email"
      defaultValue: null
      unique: true
      typeData: {
        hint: "emails only"
        placeholder: "Add your email here"
        required: false
      }
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        placeholder
        required
        hint
      }
      unique
      defaultValue
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "updateFields": {
            "id": "6175df3c40dc970001b8f848",
            "fieldsSecret": {
                "name": "Email Address",
                "description": "This is an email field type",
                "type": "email",
                "typeData": {
                    "placeholder": "Add your email here",
                    "required": false,
                    "hint": "emails only"
                },
                "unique": true,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Sun Oct 24 22:33:32 GMT 2021",
            "lastModifiedTime": "Sun Oct 24 22:37:55 GMT 2021"
        }
    }
}

Delete an Email Field Type

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