FederationSupport

caliban.federation.FederationSupport
abstract class FederationSupport(supportedDirectives: List[`__Directive`], schemaDirectives: List[Directive])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def federate[R](original: GraphQL[R]): GraphQL[R]

Accepts a GraphQL and returns a GraphQL with the minimum settings to support federation. This variant does not provide any stitching capabilities, it merely makes this schema consumable by a graphql federation gateway.

Accepts a GraphQL and returns a GraphQL with the minimum settings to support federation. This variant does not provide any stitching capabilities, it merely makes this schema consumable by a graphql federation gateway.

Value parameters

original

The original schema

Attributes

Returns

A new schema which has been augmented with federation types

def federate[R](original: GraphQL[R], resolver: EntityResolver[R], otherResolvers: EntityResolver[R]*): GraphQL[R]

Accepts a GraphQL as well as entity resolvers in order to support more advanced federation use cases. This variant will allow the gateway to query for entities by resolver.

Accepts a GraphQL as well as entity resolvers in order to support more advanced federation use cases. This variant will allow the gateway to query for entities by resolver.

Value parameters

original

The original schema

otherResolvers

Additional resolvers to supply

resolver

A type which can resolve a single type by a key which is provided per type using the @key directive

Attributes

def federated[R](resolver: EntityResolver[R], others: EntityResolver[R]*): GraphQLAspect[Nothing, R]

Concrete fields

lazy val federated: GraphQLAspect[Nothing, Any]