CipherStash
CipherStash Documentation

Exact

Exact supports equality in queries.

Supported Types

An Exact index can be defined on the following types:

  • string
  • number
  • bigint
  • boolean
  • Date

Index Definition

CollectionSchema.define<Employee>("employees").indexedWith(mapping => ({
  email: mapping.Exact("email")
})

Supported Query Operations

  • eq (equality)
let queryResult = await employees.all(
  employee => employee.email.eq("ada@security4u.example")
)