GithubHelp home page GithubHelp logo

lambrohan / nestjs-meilisearch Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 7.0 196 KB

Meilisearch module for nestjs applications.

Home Page: https://www.npmjs.com/package/nestjs-meilisearch

License: MIT License

TypeScript 93.48% JavaScript 6.52%
meilisearch nestjs

nestjs-meilisearch's People

Contributors

icetee avatar lambrohan avatar noftaly avatar thomasdom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nestjs-meilisearch's Issues

Add `meilisearch` as peer dependency

Currently, the module uses meilisearch as a dependency, and at version 0.20.1.

Each meilisearch's version is tied to a specific server version.
Using a client version incompatible with server version will cause incompatibilities and may lead to unrecoverable application errors.

The module's user should be able to use any meilisearch version to match with its server implementation.

I also suggest to add meilisearch as dev dependency for module development.

Module '"meilisearch"' has no exported member 'Document'

Document type has been removed from meilisearch JS codebase in this PR.

We have this error when running the module.

Module '"meilisearch"' has no exported member 'Document'

Workaround in package.json:

"meilisearch": "^0.30.0",
"nestjs-meilisearch": "^2.1.2",

Add support of asynchronous registration for module

Currently, this module does not support async registration.

Async registration would be useful for getting configuration variables from ConfigModule, among many other use cases.

We should be able to register the module like this:

MeiliSearchModule.forRootAsync({
  imports: [ConfigModule],
  inject: [ConfigService],
  useFactory: (configService: ConfigService) => ({
    host: configService.get<string>('MEILISEARCH_HOST'),
    apiKey: configService.get<string>('MEILISEARCH_API_KEY'),
  }),
}),

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.