How to use the @graphql-modules/di.Inject function in @graphql-modules/di

To help you get started, we’ve selected a few @graphql-modules/di examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Coding-Coach / coding-coach-api / src / repositories / mentor-repository / mentor-repository.ts View on Github external
  constructor(@Inject('TableService') private tableService: TableService) {
    this.tableService.doesTableExist(this.tableName, (error, result) => {
      if (!result.exists) {
        this.tableService.createTable(this.tableName, (error, result) => {
          console.log(error);
          console.log(result);
        });
      }
    });
  }
github Coding-Coach / coding-coach-api / src / repositories / mentee-repository / mentee-repository.ts View on Github external
  constructor(@Inject('TableService') private tableService: TableService) {
    this.tableService.doesTableExist(this.tableName, (error, result) => {
      if (!result.exists) {
        this.tableService.createTable(this.tableName, (error, result) => {
          console.log(error);
          console.log(result);
        });
      }
    });
  }
  addMentor(mentee: MenteeEntity): Promise {
github Coding-Coach / coding-coach-api / src / handlers / add-mentee / add-mentee-handler.ts View on Github external
constructor(
    @Inject('IMentorRepository') private mentorRepository: IMentorRepository
  ) {}
  index = async (context: Context, req: HttpRequest): Promise => {
github darkbasic / graphql-modules-seed / src / modules / messages / providers / messages.provider.ts View on Github external
constructor(
    @Inject(MESSAGES) private messages: MessageDbObject[],
    @Inject(CHATS) private chats: ChatDbObject[],
  ) {}
github darkbasic / graphql-modules-seed / src / modules / chats / providers / chats.provider.ts View on Github external
constructor(
    @Inject(CHATS) private chats: ChatDbObject[],
    @Inject(MESSAGES) private messages: MessageDbObject[],
  ) {}
github Coding-Coach / coding-coach-api / src / handlers / get-mentor / get-mentor-handler.ts View on Github external
constructor(
    @Inject('IMenteeRepository') private menteeRepository: IMenteeRepository
  ) {}
  index = async (context: Context, req: HttpRequest): Promise => {
github darkbasic / graphql-modules-seed / src / modules / chats / providers / chats.provider.ts View on Github external
constructor(
    @Inject(CHATS) private chats: ChatDbObject[],
    @Inject(MESSAGES) private messages: MessageDbObject[],
  ) {}
github Coding-Coach / coding-coach-api / src / handlers / get-mentees / get-mentees-handler.ts View on Github external
constructor(
    @Inject('IMentorRepository') private mentorRepository: IMentorRepository
  ) {}
  index = async (context: Context, req: HttpRequest): Promise => {
github darkbasic / graphql-modules-seed / src / modules / messages / providers / messages.provider.ts View on Github external
constructor(
    @Inject(MESSAGES) private messages: MessageDbObject[],
    @Inject(CHATS) private chats: ChatDbObject[],
  ) {}

@graphql-modules/di

MIT
Latest version published 4 years ago

Package Health Score

66 / 100
Full package analysis

Similar packages