Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Provides Number Long support for Mongoose
JavaScript
Branch: master

travis

latest commit 6e15bc1e53
@aheckmann authored
Failed to load latest commit information.
lib ocd
test tests; fixed for #1
.gitignore [FIXED] Incorrect variable reference.
.travis.yml travis
History.md release 0.0.2
LICENSE initial commit
Makefile simplify test flags
README.md Update README.md
index.js initial commit
package.json release 0.0.2

README.md

mongoose-long

Provides Number Long support for Mongoose.

Build Status

Example:

var mongoose = require('mongoose')
require('mongoose-long')(mongoose);

var SchemaTypes = mongoose.Schema.Types;
var partSchema = new Schema({ long: SchemaTypes.Long });

var Part = db.model('Part', partSchema);
var part = new Part({ long: "9223372036854775806" });

var Long = mongoose.Types.Long;
part.long = part.long.divide(Long.fromString("2"));
part.save()

install

npm install mongoose-long

See node-mongodb-native docs on all the Long methods available.

LICENSE

Something went wrong with that request. Please try again.