Documentation ¶
Overview ¶
Package aggregate provides the local aggregate graphql endpoint for Weaviate
Index ¶
Constants ¶
const GroupedByFieldName = "groupedBy"
GroupedByFieldName is a special graphQL field that appears alongside the to-be-aggregated props, but doesn't require any processing by the connectors itself, as it just displays meta info about the overall aggregation.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(dbSchema *schema.Schema, config config.Config, modulesProvider ModulesProvider, authorizer authorization.Authorizer, ) (*graphql.Field, error)
Build the Aggregate Kinds schema
Types ¶
type ModulesProvider ¶
type RequestsLog ¶
RequestsLog is a local abstraction on the RequestsLog that needs to be provided to the graphQL API in order to log Local.Get queries.
type Resolver ¶
type Resolver interface {
Aggregate(ctx context.Context, principal *models.Principal, info *aggregation.Params) (interface{}, 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.