Sha256: 7e49820cd32537ccd54c2d5a3e82c0599f0674fab621052cad7baff22caa94c0
Contents?: true
Size: 416 Bytes
Versions: 5
Compression:
Stored size: 416 Bytes
Contents
const mongoose = require('mongoose'); const [Number, String] = [ mongoose.Schema.Types.Number, mongoose.Schema.Types.String, ]; const IdSchema = mongoose.Schema({ <%- for attribute in attrs_with_extras -%> <%= attribute[:name] %>: <%= TYPE_LOOKUP_JS[attribute[:type]] -%>, <%- end %> }, { _id: false, id: false }); module.exports.IdSchema = IdSchema; module.exports.Id = mongoose.model('Id', IdSchema);
Version data entries
5 entries across 5 versions & 1 rubygems