How to use the @adonisjs/fold.ioc._getAutoloadedPath function in @adonisjs/fold

To help you get started, we’ve selected a few @adonisjs/fold 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 HigoRibeiro / adonis-gql / src / Resolver / Schema.js View on Github external
_getSchemaFile () {
    global.iocResolver._directories.schemas = 'Schemas'
    const namespace = global.iocResolver.forDir('schemas').translate(this.name)
    const filePath = ioc._getAutoloadedPath(namespace)
    return readFileSync(`${filePath}.graphql`, 'utf-8')
  }