# db.command.pop

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

Function signature:

function pop(values: any[]): Command

Sample code

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