explore

package
v1.20.6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(schema *models.Schema, modulesProvider ModulesProvider) *graphql.Field

Build builds the object containing the Local->Explore Fields, such as Objects

Types

type ModulesProvider

type ModulesProvider interface {
	ExploreArguments(schema *models.Schema) map[string]*graphql.ArgumentConfig
	CrossClassExtractSearchParams(arguments map[string]interface{}) map[string]interface{}
}

type RequestsLog

type RequestsLog interface {
	Register(requestType string, identifier string)
}

RequestsLog is a local abstraction on the RequestsLog that needs to be provided to the graphQL API in order to log Local.Fetch queries.

type Resolver

type Resolver interface {
	Explore(ctx context.Context, principal *models.Principal,
		params traverser.ExploreParams) ([]search.Result, error)
}

Resolver is a local interface that can be composed with other interfaces to form the overall GraphQL API main interface. All data-base connectors that want to support the Meta feature must implement this interface.

Jump to

Keyboard shortcuts

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