metadata

package
v0.3.43 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMetaDataQuery = errors.New("invalid query type")
	ErrInvalidTypeQuery     = errors.New("invalid type query")
)
View Source
var (
	ErrInvalidSchema = errors.New("invalid schema")
	ErrTypeNotFound  = errors.New("type not found")
)

Functions

func ProcessQuery

func ProcessQuery(ctx context.Context, provider catalog.Provider, query sdl.QueryRequest, maxDepth int, vars map[string]any, querier Querier) (any, error)

ProcessQuery resolves one meta query. The querier is nil for every path except _search (and may legitimately be nil there too — a caller that has no engine to re-enter gets a clear error rather than a panic).

Types

type Querier added in v0.3.43

type Querier interface {
	Query(ctx context.Context, query string, vars map[string]any) (*qetypes.Response, error)
}

Querier is the engine seam the search resolver needs: _search ranks over the catalog's own entity views, which is a GraphQL query the engine executes for itself. Narrower than types.Querier on purpose — this package has no business loading data sources, and a one-method seam is trivial to fake in a test.

Jump to

Keyboard shortcuts

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