The collection to remove document in
The id of the documented to remove
A promise that resolves when the operation is complete
Removes a document.
import { remove } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
remove(users, '00sHm46UWKObv2W7XK9e').then(() => console.log('Done!'))
The reference to the document to remove
A promise that resolves when the operation is complete
Generated using TypeDoc
Removes a document.
import { remove } from 'typesaurus' type User = { name: string } const users = collection<User>('users') remove(users, '00sHm46UWKObv2W7XK9e').then(() => console.log('Done!'))