Comparing version 0.3.3-1 to 0.3.3-2
{ | ||
"name": "baucis", | ||
"version": "0.3.3-1", | ||
"version": "0.3.3-2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
baucis v0.3.3-1 | ||
baucis v0.3.3-2 | ||
=============== | ||
@@ -25,5 +25,4 @@ | ||
An example of creating a REST API from a Mongoose schema: | ||
An example of creating a REST API from a couple Mongoose schemata: | ||
// Define a couple Mongoose schemata | ||
var Vegetable = new mongoose.Schema({ | ||
@@ -37,9 +36,10 @@ name: String | ||
// Also note that Mongoose middleware will be executed as usual. | ||
// Note that Mongoose middleware will be executed as usual | ||
Vegetable.pre('save', function () { ... }); | ||
// Register the schema | ||
// Register the schemata | ||
mongoose.model('vegetable', Vegetable); | ||
mongoose.model('fruit', Fruit); | ||
// Create routes for the schemata | ||
// Create the API routes | ||
baucis.rest({ | ||
@@ -46,0 +46,0 @@ singular: 'vegetable', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
271453