1.0.6 • Published 3 years ago

mongoose-partial-search v1.0.6

Weekly downloads
81
License
MIT
Repository
-
Last release
3 years ago
  const plugin = require('mongoose-partial-search');
  const mongoose = require('mongoose');

  const Schema = new mongoose.Schema({
    name: {
      type: String,
      searchable: true,
    }
  });

  Schema.plugin(plugin);
  
  const Model = mongoose.model('foo', Schema);
  const query = Model.searchBuilder('bar');

  // then, use the query however you like.
1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago