# db.command.shift

Update command. Deletes the header element from an array when the value of a field is the array.

Function signature:

function shift(values: any[]): Command

Sample code

const _ = db.command
db.collection('todos').doc('doc-id').update({
  data: {
    tags: _.shift()
  }
})