mongoose-algolia-index

    1.0.0-beta.1 • Public • Published

    Build Status Coverage Status Build status Dependency Status

    mongoose-algolia-index

    Mongoose plugin to automatically index newly created documents for Algolia.

    Installation

    npm install mongoose-algolia-index --save

    Usage

    const mongoose = require('mongoose');
    const algoliaPlugin = require('mongoose-algolia-index');
     
    let TestSchema = new mongoose.Schema({
      name: String
    });
     
    TestSchema.plugin(algoliaPlugin, {
      index: true,
      schemaName: 'Test',
      applicationId: '<your-application-id>',
      apiKey: '<your-api-key>'
    });
     
    mongoose.model('Test', TestSchema);

    Documentation

    Read the documentation in DOCUMENTATION.

    Contributing

    Read the CONTRIBUTING guide for information.

    License

    Licensed under MIT. See LICENSE for more information.

    Issues

    Report a bug in issues.

    Made with love in Dhaka, Bangladesh by Riyadh Al Nur

    Install

    npm i mongoose-algolia-index

    DownloadsWeekly Downloads

    7

    Version

    1.0.0-beta.1

    License

    MIT

    Last publish

    Collaborators

    • riyadhalnur