graphqlcatalog

package
v1.140.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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