()
| 247 | } |
| 248 | |
| 249 | public get id(): Long { |
| 250 | try { |
| 251 | return Long.fromBigInt(this.cursor.get('id', BSONType.long, true)); |
| 252 | } catch (cause) { |
| 253 | throw new MongoUnexpectedServerResponseError(cause.message, { cause }); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | public get ns() { |
| 258 | const namespace = this.cursor.get('ns', BSONType.string); |