* @description Performs create operation * @param options * @returns created document
(
options: CreateOptions<T, TSlug, TSelect>,
init?: RequestInit,
)
| 162 | * @returns created document |
| 163 | */ |
| 164 | create<TSlug extends CollectionSlug<T>, TSelect extends SelectType>( |
| 165 | options: CreateOptions<T, TSlug, TSelect>, |
| 166 | init?: RequestInit, |
| 167 | ): Promise<TransformCollectionWithSelect<T, TSlug, TSelect>> { |
| 168 | return create(this, options, init) |
| 169 | } |
| 170 | |
| 171 | delete<TSlug extends CollectionSlug<T>, TSelect extends SelectFromCollectionSlug<T, TSlug>>( |
| 172 | options: DeleteManyOptions<T, TSlug, TSelect>, |