JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q11096F
  • License ISC

A Custom Mongoose UUID SchemaType, to use for MongoDB Binary UUIDs

Package Exports

  • mongooseodm-uuid

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mongooseodm-uuid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mongooseodm-uuid (MUUID)

A custom UUID schema type for the popular NodeJS MongoDB ODM, Mongoose.

Subtypes

Both the java 0x03 (OLD) mongodb binary subtype, and the standard 0x04 (NEW) subtype are supported for casting from binary to string.

Currently, only the 0x04 subtype is supported for casting to Binary (but you should use it anyway).

Installing MUUID

To install the MUUID schema type, follow these steps:

npm:

npm install mongooseodm-uuid

Using

  1. Assign the schema to the registry once, preferably in the index.js at the top.
require('mongooseodm-uuid').assignSchemaType();

2)