federation

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const FederationDirectives = `` /* 847-byte string literal not displayed */

FederationDirectives contains all Apollo Federation directive definitions

View Source
const FederationTypes = `
# Federation query types
scalar _Any

type _Service {
  sdl: String!
}
`

FederationTypes contains the special types required by federation

Variables

This section is empty.

Functions

func EntitiesResolver

func EntitiesResolver(entityResolvers map[string]types.EntityResolveFn) types.FieldResolveFn

EntitiesResolver creates the _entities query resolver for federation This resolver is called by the gateway to resolve entity references

func GetFederationSchema

func GetFederationSchema() string

GetFederationSchema returns the complete federation schema additions

func ServiceResolver

func ServiceResolver(schemaSDL string) types.FieldResolveFn

ServiceResolver creates the _service query resolver for federation This returns the SDL (Schema Definition Language) for the subgraph

Types

type ServiceResponse

type ServiceResponse struct {
	SDL string `json:"sdl"`
}

ServiceResponse represents the _Service type in federation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL