docparse-upload-create
v1.1.10
Published
Create a new upload document in the database
Downloads
16
Readme
Docparse Upload Create
Create a new upload document in the database
Dependency tracking by David
Usage
var inspect = require('eyespect').inspector();
var create = require('docparse-upload-create');
var data = {
hash: 'foo hash',
supplierCode: 'FGS',
userID: 'fooUserID' // this should be an _id ObjectId of a docparse-user instance
}
create(data, function(err, reply) {
if(err) {
inspect(err, 'error creating upload);
return;
}
inspect(reply.toObject(), 'created upload');
});
Installation
npm install docparse-upload-create