How to use the fusion-tokens.LoggerToken.optional function in fusion-tokens

To help you get started, we’ve selected a few fusion-tokens 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 fusionjs / fusionjs / fusion-plugin-apollo / src / plugin.js View on Github external
function getDeps(): DepsType {
  if (__NODE__) {
    return {
      apolloContext: ApolloContextToken.optional,
      logger: LoggerToken.optional,
      schema: GraphQLSchemaToken.optional,
      endpoint: GraphQLEndpointToken.optional,
      getApolloClient: ApolloClientToken,
      getDataFromTree: GetDataFromTreeToken.optional,
      bodyParserConfig: ApolloBodyParserConfigToken.optional,
      defaultOptionsConfig: ApolloDefaultOptionsConfigToken.optional,
    };
  }
  // $FlowFixMe
  return {
    getApolloClient: ApolloClientToken,
  };
}

fusion-tokens

Dependency injection tokens for FusionJS

MIT
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis