MCPcopy
hub / github.com/mongodb/node-mongodb-native / pluckBSONSerializeOptions

Function pluckBSONSerializeOptions

src/bson.ts:116–141  ·  view source on GitHub ↗
(options: BSONSerializeOptions)

Source from the content-addressed store, hash-verified

114}
115
116export 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

Callers 3

toObjectMethod · 0.90
constructorFunction · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected