How to use the @graphql-codegen/visitor-plugin-common.transformMappers function in @graphql-codegen/visitor-plugin-common

To help you get started, we’ve selected a few @graphql-codegen/visitor-plugin-common 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 dotansimha / graphql-code-generator / packages / plugins / java / resolvers / src / visitor.ts View on Github external
constructor(rawConfig: JavaResolversPluginRawConfig, private _schema: GraphQLSchema, defaultPackageName: string) {
    super(rawConfig, {
      mappers: transformMappers(rawConfig.mappers || {}),
      package: rawConfig.package || defaultPackageName,
      defaultMapper: parseMapper(rawConfig.defaultMapper || 'Object'),
      className: rawConfig.className || 'Resolvers',
      listType: rawConfig.listType || 'Iterable',
      scalars: buildScalars(_schema, rawConfig.scalars, JAVA_SCALARS),
    });
  }