(
filter: Document,
options: DeleteOptions & { limit?: number }
)
| 144 | } |
| 145 | |
| 146 | export function makeDeleteStatement( |
| 147 | filter: Document, |
| 148 | options: DeleteOptions & { limit?: number } |
| 149 | ): DeleteStatement { |
| 150 | const op: DeleteStatement = { |
| 151 | q: filter, |
| 152 | limit: typeof options.limit === 'number' ? options.limit : 0 |
| 153 | }; |
| 154 | |
| 155 | if (options.collation) { |
| 156 | op.collation = options.collation; |
| 157 | } |
| 158 | |
| 159 | if (options.hint) { |
| 160 | op.hint = options.hint; |
| 161 | } |
| 162 | |
| 163 | return op; |
| 164 | } |
| 165 | |
| 166 | defineAspects(DeleteOperation, [ |
| 167 | Aspect.RETRYABLE, |
no outgoing calls
no test coverage detected