express-typescript-boilerplate icon indicating copy to clipboard operation
express-typescript-boilerplate copied to clipboard

How to set Elastic search Loader?

Open shkangr opened this issue 4 years ago • 0 comments

Is there a way to set Elastic Search connection for the format of "...loader" like in this boiler plate?

more specific

bootstrapMicroframework({

  loaders: [
    winstonLoader,
    iocLoader,
    typeormLoader,
    expressLoader,
    swaggerLoader,
    homeLoader,
    publicLoader,
    elasticSearchLoader // <- I want to use like this
  ]
})
  .then(() => banner(log))
  .catch((error) => {
    console.log('error', error)
    log.error(`Application is crashed: ${error}`)
  })

I have no idea how to set "elasticSearchLoader.ts" file to use "microframework-w3tec" module

Does any one can help?

thanks :)

shkangr avatar May 27 '21 05:05 shkangr