graphql

package
v0.0.0-...-fc03dd6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpEq  = "="
	OpNeq = "!="
	OpGt  = ">"
	OpGte = ">="
	OpLt  = "<"
	OpLte = "<="
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterOperator

type FilterOperator search.Operator

func (FilterOperator) String

func (o FilterOperator) String() (result string, err error)

String generates a GraphQL string representation of the operator. It panics if used on an unknown operator.

type FilterTerm

type FilterTerm search.Term

func (FilterTerm) MapFilter

func (t FilterTerm) MapFilter(mapPropertyFunc func(string) string) (searchFilter *model.SearchFilter, err error)

Map a filter term to a GraphQL SearchFilter

type PropertyCluster

type PropertyCluster string

func (PropertyCluster) MapProperty

func (p PropertyCluster) MapProperty() string

MapProperty maps a specified O2 property name to the search API property name

type PropertyNode

type PropertyNode string

func (PropertyNode) MapProperty

func (p PropertyNode) MapProperty() string

MapProperty maps a specified O2 property name to the search API property name

Jump to

Keyboard shortcuts

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