graphqlcatalog

package
v1.132.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package graphqlcatalog reads an API catalog as the graphql kind reads it: the one spec entry holding a GraphQL schema, and the operation embeddings written for it (#1745).

It is the seam that lets a graphql connection reference the same catalog an api connection does without the graphql toolkit importing the api gateway's catalog package. The toolkit declares what it needs — a schema by catalog id, and that schema's vectors — and this resolves it against the catalog store the platform already has.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Store

func Store(specs SpecStore) graphqlkit.CatalogStore

Store adapts a catalog store to the one a graphql connection reads its schema from. A nil store adapts to nil, leaving connections reading their own endpoints.

Types

type SpecStore

type SpecStore interface {
	ListSpecs(ctx context.Context, catalogID string) ([]apicatalog.SpecEntry, error)
	ListOperationEmbeddings(ctx context.Context, catalogID, specName string) ([]apicatalog.OperationEmbedding, error)
}

SpecStore is the catalog store as this package reads it.

Jump to

Keyboard shortcuts

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