releases.shpreview
Apollo GraphQL/Apollo Federation/@apollo/federation-internals@2.12.1

@apollo/federation-internals@2.12.1

$npx -y @buildinternet/releases show rel_ohk1a9YD2Hos_d8mRg94f

Patch Changes

  • Allow interface object fields to specify access control (#3343)

    Update composition logic to allow specifying access control directives (@authenticated, @requiresScopes and @policy) on @interfaceObject fields. While we disallow access control on interface types and fields, we decided to support it on @interfaceObject as it is a useful pattern to define a single resolver (that may need access controls) for common interface fields. Alternative would require our users to explicitly define resolvers for all implementations which defeats the purpose of @interfaceObject.

    This PR refactors in how we propagate access control by providing additional merge sources when merging directives on interfaces, interface fields and object fields.

  • Fixed demand control validations to unwrap non-nullable composite types and fields when performing validations. (#3343)

Fetched April 11, 2026