Skip to content

How to set Elastic search Loader? #235

Open
@shkangr

Description

@shkangr

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions