# apollo-client/release
Apollo Client @apollo/client@4.3.0-rc.1
importance: highbreakingfeatureprerelease
This release introduces changes to how field policies and `inputObjects` handle scalar arrays, requiring explicit list syntax for scalar fields. It also removes the optional modifier from the `variables` property in mutation update functions.
affected
Developers using field policies or `inputObjects` with scalar arrays are affected by the breaking changes.
action
Update field policies and `inputObjects` to use the new list syntax for scalar arrays.
release_signals
-The field policy `scalar` option and `inputObjects` type string now require GraphQL list syntax for lists of scalars.
-The abstract `cache.getScalarForField` is renamed to `cache.getScalarTypeForField` and now returns a string representing the scalar type.
+Field policies and `inputObjects` now support explicit list syntax for scalar arrays.
+Added support for handling scalars represented by arrays.
code_snippet
const cache = new InMemoryCache({
scalars: {
DateTimeRange: dateTimeRangeScalar,
},
typePolicies: {
Event: {
fields: {
range: {
scalar: "DateTimeRange",
},
},
},
},
});# 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.