query

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(queries []string) string

func Between

func Between(attribute string, start, end interface{}) string

func Contains

func Contains(attribute string, value interface{}) string

Contains filters resources where attribute contains the specified value. For string attributes, checks if the string contains the substring.

Note: For array attributes, use ContainsAny or ContainsAll instead.

func ContainsAll

func ContainsAll(attribute string, value []interface{}) string

ContainsAll filters resources where attribute contains ALL of the specified values. For array and relationship attributes, matches documents where the attribute contains every one of the given values.

func ContainsAny

func ContainsAny(attribute string, value []interface{}) string

ContainsAny filters resources where attribute contains ANY of the specified values. For array and relationship attributes, matches documents where the attribute contains at least one of the given values.

func CreatedAfter

func CreatedAfter(value interface{}) string

func CreatedBefore

func CreatedBefore(value interface{}) string

func CreatedBetween

func CreatedBetween(start, end interface{}) string

func Crosses

func Crosses(attribute string, values []interface{}) string

func CursorAfter

func CursorAfter(documentId string) string

func CursorBefore

func CursorBefore(documentId interface{}) string

func DistanceEqual

func DistanceEqual(attribute string, values []interface{}, distance float64, meters bool) string

func DistanceGreaterThan

func DistanceGreaterThan(attribute string, values []interface{}, distance float64, meters bool) string

func DistanceLessThan

func DistanceLessThan(attribute string, values []interface{}, distance float64, meters bool) string

func DistanceNotEqual

func DistanceNotEqual(attribute string, values []interface{}, distance float64, meters bool) string

func ElemMatch

func ElemMatch(attribute string, queries []string) string

ElemMatch filters array elements where at least one element matches all the specified queries.

attribute: The attribute containing the array to filter on. queries: The list of query strings to match against array elements. Returns the query string.

func EndsWith

func EndsWith(attribute string, value interface{}) string

func Equal

func Equal(attribute string, value interface{}) string

func Exists

func Exists(attributes []interface{}) string

Exists filters resources where the specified attributes exist.

attributes: The list of attributes that must exist. Returns the query string.

func GreaterThan

func GreaterThan(attribute string, value interface{}) string

func GreaterThanEqual

func GreaterThanEqual(attribute string, value interface{}) string

func Intersects

func Intersects(attribute string, values []interface{}) string

func IsNotNull

func IsNotNull(attribute string) string

func IsNull

func IsNull(attribute string) string

func LessThan

func LessThan(attribute string, value interface{}) string

func LessThanEqual

func LessThanEqual(attribute string, value interface{}) string

func Limit

func Limit(limit int) string

func NotBetween

func NotBetween(attribute string, start, end interface{}) string

func NotContains

func NotContains(attribute string, value interface{}) string

func NotCrosses

func NotCrosses(attribute string, values []interface{}) string

func NotEndsWith

func NotEndsWith(attribute string, value interface{}) string

func NotEqual

func NotEqual(attribute string, value interface{}) string

func NotExists

func NotExists(attributes []interface{}) string

NotExists filters resources where the specified attributes do not exist.

attributes: The list of attributes that must not exist. Returns the query string.

func NotIntersects

func NotIntersects(attribute string, values []interface{}) string

func NotOverlaps

func NotOverlaps(attribute string, values []interface{}) string

func NotSearch

func NotSearch(attribute string, value interface{}) string

func NotStartsWith

func NotStartsWith(attribute string, value interface{}) string

func NotTouches

func NotTouches(attribute string, values []interface{}) string

func Offset

func Offset(offset int) string

func Or

func Or(queries []string) string

func OrderAsc

func OrderAsc(attribute string) string

func OrderDesc

func OrderDesc(attribute string) string

func OrderRandom

func OrderRandom() string

func Overlaps

func Overlaps(attribute string, values []interface{}) string

func Regex

func Regex(attribute string, pattern string) string

Regex filters resources where attribute matches a regular expression pattern.

attribute: The attribute to filter on. pattern: The regular expression pattern to match. Returns the query string.

func Search(attribute string, value interface{}) string

func Select

func Select(attributes interface{}) string

func StartsWith

func StartsWith(attribute string, value interface{}) string

func Touches

func Touches(attribute string, values []interface{}) string

func UpdatedAfter

func UpdatedAfter(value interface{}) string

func UpdatedBefore

func UpdatedBefore(value interface{}) string

func UpdatedBetween

func UpdatedBetween(start, end interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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