Versions in this module Expand all Collapse all v2 v2.0.13 Jul 26, 2026 Changes in this version + const ErrGraphNotReady + const ErrInvalidParam + const ErrLabelNotFound + const ErrTypeMismatch + const ErrUnknownField + const ErrUnsupportedIndexer + type Column struct + Description string + Name string + Required bool + Type string + type CypherQuerier interface + CypherQuery func(ctx context.Context, q string, params map[string]any) ([]map[string]any, error) + type Error struct + Code int + Message string + func (e *Error) Error() string + type FieldValidator interface + ValidateField func(label, field string) error + type LabelInfo struct + Category string + Count int + Description string + Label string + type Order struct + Desc bool + Field string + type Range struct + Gte any + Lte any + type Result struct + Columns []Column + Label string + Page int + Rows []map[string]any + Size int + Total int + type Schema struct + Category string + Columns []Column + Description string + Label string + type SchemaProvider interface + Describe func(ctx context.Context, label, category string) ([]Column, string, string, error) + type Service struct + func New(cypher CypherQuerier, opts ...ServiceOption) (*Service, error) + func (s *Service) Describe(ctx context.Context, label, category string) (*Schema, error) + func (s *Service) ListLabels(ctx context.Context) ([]LabelInfo, error) + func (s *Service) Query(ctx context.Context, spec Spec) (*Result, error) + type ServiceOption func(*Service) + func WithSchemaProvider(p SchemaProvider) ServiceOption + func WithValidator(v FieldValidator) ServiceOption + type Spec struct + Category string + Fields []string + Label string + OrderBy []Order + Page int + Path string + Size int + Where *Where + WithTotal bool + type Where struct + Contains map[string]string + Equals map[string]any + In map[string][]any + Range map[string]Range