Created
May 14, 2020 18:39
-
-
Save baranovxyz/5029baa5e6cba013a12079cd2ccf49cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let doc = { type: 'string' }; | |
console.log(BSON.serialize(doc)); | |
// <Buffer 16 00 00 00 02 74 79 70 65 00 07 00 00 00 73 74 72 69 6e 67 00 00> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment