Skip to content

Support custom mongoose objects #62

Description

@markstos

This is feature that other Mongoose type plugins support, allowing modifying a mongoose object other than the default, with syntax like this:

const mongoose = require("mongoose");
const Int32 = require("mongoose-int32").loadType(mongoose);

The way that some others like this implement is a breaking change, because you have to call loadType() to select which Mongoose instance you want to attach to. If no instance is provided, the default is attached to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions