(options: BSONSerializeOptions)
| 114 | } |
| 115 | |
| 116 | export function pluckBSONSerializeOptions(options: BSONSerializeOptions): BSONSerializeOptions { |
| 117 | const { |
| 118 | fieldsAsRaw, |
| 119 | useBigInt64, |
| 120 | promoteValues, |
| 121 | promoteBuffers, |
| 122 | promoteLongs, |
| 123 | serializeFunctions, |
| 124 | ignoreUndefined, |
| 125 | bsonRegExp, |
| 126 | raw, |
| 127 | enableUtf8Validation |
| 128 | } = options; |
| 129 | return { |
| 130 | fieldsAsRaw, |
| 131 | useBigInt64, |
| 132 | promoteValues, |
| 133 | promoteBuffers, |
| 134 | promoteLongs, |
| 135 | serializeFunctions, |
| 136 | ignoreUndefined, |
| 137 | bsonRegExp, |
| 138 | raw, |
| 139 | enableUtf8Validation |
| 140 | }; |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Merge the given BSONSerializeOptions, preferring options over the parent's options, and |
no outgoing calls
no test coverage detected