Skip to content

Different promise implementations are not accepted #23

Description

@jrvidal

If I try to do something like:

res.send(query.exec().then(function(data) {
    var formattedData = format(data);
    return data;
}));

the plugin does not work, since it is checking for the mongoose promise implementation in particular, and the then method returns a MPromise. It would be nice to be able to interoperate with thenables in general or, at least, to redefine mongoose.Promise#then to return mongoose.Promise instances.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions