equals

Since Kuzzle v1.0.0

The equals filter matches documents or messages attributes using string equality.

Example

Given the following documents:

{
  firstName: 'Grace',
  lastName: 'Hopper'
},
{
  firstName: 'Ada',
  lastName: 'Lovelace'
}

The following filter validates the first document:

{
  equals: {
    firstName: 'Grace'
  }
}