How to use the @gapi/core.CoreModule function in @gapi/core

To help you get started, we’ve selected a few @gapi/core 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 rxdi / graphqj / lib / main.js View on Github external
"$resolvers": {
    "findUser": {
      "name": "Kristiyan Tachev",
      "email": "test@gmail.com",
      "phone": 414141,
      "arrayOfNumbers": [515151, 412414],
      "arrayOfStrings": ["515151", "412414"]
    }
  }
}
`, { encoding: 'utf-8' });
    }
}
else {
    core_1.BootstrapFramework(app_module_1.AppModule, [
        core_2.CoreModule.forRoot({
            graphql: {
                openBrowser: args_extractors_1.nextOrDefault('--random', true, v => v === 'true' ? false : true),
                buildAstDefinitions: false // Removed ast definition since directives are lost
            },
            server: {
                randomPort: args_extractors_1.nextOrDefault('--random', false),
                hapi: {
                    port: args_extractors_1.nextOrDefault('--port', 9000, p => Number(p))
                }
            }
        })
    ]).subscribe(() => console.log('Started'), console.log.bind(console));
}