constructor(options: QueryOptions)
.createCollection(name: string)
.set(id: string, data: T): Promise<void>
.get(id: string): Promise<Document<T> | null>
.delete(id: string): Promise<void>
.update(id: string, data: T): Promise<void>
.createIndex(options: CreateIndexOptions<T>): Index<T>
.match(query): Promise<Document<T>[]>
query
argument is strongly typed depending on the terms you have passed in when creating the index.
.reIndex(): Promise<void>
reIndex
will go through the entire collection and rebuild the index, depending on the size of the collection this might take a while.
.delete(): Promise<void>