Skip to content

Commit

Permalink
docs: update FindOneOptions lock property comment (#5701)
Browse files Browse the repository at this point in the history
  • Loading branch information
Koronen committed May 16, 2020
1 parent ec3be41 commit 2066734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/find-options/FindOneOptions.ts
Expand Up @@ -38,7 +38,7 @@ export interface FindOneOptions<Entity = any> {
cache?: boolean | number | { id: any, milliseconds: number };

/**
* Enables or disables query result caching.
* Indicates what locking mode should be used.
*/
lock?: { mode: "optimistic", version: number|Date } | { mode: "pessimistic_read"|"pessimistic_write"|"dirty_read"|"pessimistic_partial_write"|"pessimistic_write_or_fail" };

Expand Down

0 comments on commit 2066734

Please sign in to comment.