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

Method isWritable

src/sdam/server_description.ts:159–161  ·  view source on GitHub ↗

Is this server available for writes

()

Source from the content-addressed store, hash-verified

157
158 /** Is this server available for writes */
159 get isWritable(): boolean {
160 return WRITABLE_SERVER_TYPES.has(this.type);
161 }
162
163 get host(): string {
164 const chopLength = `:${this.port}`.length;

Callers

nothing calls this directly

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected