@collabland/near-indexer
TypeScript icon, indicating that this package has built-in type declarations

0.24.1 • Public • Published

@collabland/near-indexer

LoopBack

Installation

Install NearIndexerComponent using npm;

$ [npm install | yarn add] @collabland/near-indexer

Basic Use

Configure and load NearIndexerComponent in the application constructor as shown below.

import {NearIndexerComponent, NearIndexerComponentOptions, DEFAULT_COLLABLAND_NEAR_INDEXER_OPTIONS} from '@collabland/near-indexer';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: NearIndexerComponentOptions = DEFAULT_COLLABLAND_NEAR_INDEXER_OPTIONS;
    this.configure(NearIndexerComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(NearIndexerComponent);
    // ...
  }
  // ...
}

Package Sidebar

Install

npm i @collabland/near-indexer

Weekly Downloads

55

Version

0.24.1

License

MIT

Unpacked Size

198 kB

Total Files

110

Last publish

Collaborators

  • alokt
  • agnes512
  • rfeng