chore(deps): update dependency apollographql.hotchocolate.federation to v1 #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.3.0
->1.0.0
Release Notes
apollographql/federation-hotchocolate (ApolloGraphQL.HotChocolate.Federation)
v1.0.0
Apollo Federation for HotChocolate
Apollo Federation is a powerful, open architecture that helps you create a unified supergraph that combines multiple GraphQL APIs.
ApolloGraphQL.HotChocolate.Federation
provides Apollo Federation support for building subgraphs in theHotChocolate
ecosystem. Individual subgraphs can be run independently of each other but can also specify relationships to the other subgraphs by using Federated directives. See Apollo Federation documentation for details.Generating Federated Schemas
ApolloGraphQL.HotChocolate.Federation
package is published to Nuget. Update your.csproj
file with following package referencesAfter installing the necessary packages, you need to register Apollo Federation with your GraphQL service. You need to opt-in to Federation v1 or v2 schema by invoking corresponding builder extension
Apollo Federation requires subgraphs to provide some additional metadata to make them supergraph aware. Entities are GraphQL objects that can be uniquely identified across the supergraph by the specified
@key
s. Since entities can be extended by various subgraphs, we need an extra entry point to access the entities, i.e. subgraphs need to implement reference resolvers for entities that they support.All federated directives are provided as attributes that can be applied directly on classes/fields/methods. Alternatively, if you need more granular control, you can use code first approach and manually populate federation information on the underlying GraphQL type descriptor. All federated directives expose corresponding methods on the applicable descriptor. Example attribute usage
Federation v1 directives
Extends
applicable on objects, see@extends
documentationExternal
applicable on fields, see@external
documentationKey
applicable on objects, see@key
documentationProvides
applicable on fields, see@provides
documentationRequires
applicable on fields, see@requires
documentationFederation v2 directives (includes all of the v1 directives)
ApolloTag
applicable on schema, see@tag
documentationApolloAuthenticated
(since v2.5) applicable on enum, field, interface and object,@authenticated
documentationComposeDirective
(since v2.1) applicable on schema, see@composeDirective
documentationContact
applicable on schema, see@contact
usageInaccessible
applicable on all type definitions, see@inaccessible
documentationInterfaceObject
(since v2.3) applicable on objects, see@interfaceObject
documentationKeyInterface
applicable on interfaces, see entity interface@key
documentationLink
applicable on schema, see@link
documentationRequiresScopes
(since v2.5) applicable on enum, field, interface and object,@requiresScopes
documentationShareable
applicable on schema, see@shareable
documentationEntity resolution
Map
applicable on entity resolver method paramaters, allows you to map complex argument to a simpler representation value, e.g.[Map("foo.bar")] string bar
ReferenceResolver
applicable on public static methods within an entity class to indicate entity resolverConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.