# apollo-client/release
Apollo Client @apollo/client-graphql-codegen@2.2.0
importance: highfeature
This release introduces a new GraphQL Codegen plugin for Apollo Client that generates configuration objects for custom scalars, including input object and type policy configurations.
affected
Developers using custom scalars in Apollo Client will benefit from the new code generation capabilities.
action
Update to version 2.2.0 to take advantage of the new custom scalar configuration generation features.
release_signals
+Added support for generating configuration objects for custom scalars in Apollo Client.
+Introduced a new GraphQL Codegen plugin to generate input object configuration for custom scalars.
+The plugin now generates type policy configuration for custom scalars.
+The plugin now emits GraphQL list syntax in `inputObjects` and `scalarTypePolicies`.
code_snippet
// codegen.ts
import type { CustomScalarsPluginConfig } from "@apollo/client-graphql-codegen/custom-scalars";
const config: CodegenConfig = {
// ...
generates: {
"./path/to/custom-scalars.ts": {
plugins: ["@apollo/client-graphql-codegen/custom-scalars"],
config: {
// ...
} satisfies CustomScalarsPluginConfig,
},
},
};# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.