method
RiduClient.documentLock
Read the current document-lock lease.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
options | RequestOptions | | The options value. |
Returns
The declared result.
Promise<DocumentLockEnvelope>Full signature
RiduClient.documentLock<Slug extends CollectionSlug<Config>>(
collection: Slug,
id: string,
options?: RequestOptions,
): Promise<DocumentLockEnvelope>Related types
CollectionSlugThe generated union of collection slugs.
RequestOptionsOptions shared by every request.
DocumentLockEnvelopeThe current lease and whether this request owns or acquired it.