Skip to content

kirkdotcam/xylem

Repository files navigation

xylem

This project is meant to be a low-complexity set of examples for implementing methods for MongoDB language drivers.

chStreamFlood

An example of Node.js spawning several processes, then each process loading data as fast as it can into the database in writer.js. We then read from the database using a change stream in reader.js.

findOneAndUpdate

A compare/contrast set of code of using reads with updates, as opposed to a findOneAndUpdate method call.

gridFSNode

An example of an implementation of gridFS to load basil images into the database as objects and creating chunks collections.

csfle

An example of client-side field-level encryption.

multipleArrayFilters

An example of multiple ArrayFilters being used in an update query to update separate array fields on a document.

regex

Doing regular expressions on numbers in MongoDB.

errorHandling

Dealing with errors in an insertMany vs an upsert (with BulkWrite).