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

/docparse-upload-create/

    Package Sidebar

    Install

    npm i docparse-upload-create

    Weekly Downloads

    2

    Version

    1.1.10

    License

    BSD

    Last publish

    Collaborators

    • clewfirst