docparse-upload-create

1.1.10 • Public • Published

Docparse Upload Create

Create a new upload document in the database. The upload should be an instance of docparse-upload.

Build Status Dependency Status 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.100latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.100
1.1.90
1.1.80
1.1.70
1.1.60
1.1.30
1.1.10
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i docparse-upload-create

Weekly Downloads

0

Version

1.1.10

License

BSD

Last publish

Collaborators

  • clewfirst