Documentation
¶
Index ¶
- func And(queries []string) string
- func Between(attribute string, start, end interface{}) string
- func Contains(attribute string, value interface{}) string
- func ContainsAll(attribute string, value []interface{}) string
- func ContainsAny(attribute string, value []interface{}) string
- func CreatedAfter(value interface{}) string
- func CreatedBefore(value interface{}) string
- func CreatedBetween(start, end interface{}) string
- func Crosses(attribute string, values []interface{}) string
- func CursorAfter(documentId string) string
- func CursorBefore(documentId interface{}) string
- func DistanceEqual(attribute string, values []interface{}, distance float64, meters bool) string
- func DistanceGreaterThan(attribute string, values []interface{}, distance float64, meters bool) string
- func DistanceLessThan(attribute string, values []interface{}, distance float64, meters bool) string
- func DistanceNotEqual(attribute string, values []interface{}, distance float64, meters bool) string
- func ElemMatch(attribute string, queries []string) string
- func EndsWith(attribute string, value interface{}) string
- func Equal(attribute string, value interface{}) string
- func Exists(attributes []interface{}) string
- func GreaterThan(attribute string, value interface{}) string
- func GreaterThanEqual(attribute string, value interface{}) string
- func Intersects(attribute string, values []interface{}) string
- func IsNotNull(attribute string) string
- func IsNull(attribute string) string
- func LessThan(attribute string, value interface{}) string
- func LessThanEqual(attribute string, value interface{}) string
- func Limit(limit int) string
- func NotBetween(attribute string, start, end interface{}) string
- func NotContains(attribute string, value interface{}) string
- func NotCrosses(attribute string, values []interface{}) string
- func NotEndsWith(attribute string, value interface{}) string
- func NotEqual(attribute string, value interface{}) string
- func NotExists(attributes []interface{}) string
- func NotIntersects(attribute string, values []interface{}) string
- func NotOverlaps(attribute string, values []interface{}) string
- func NotSearch(attribute string, value interface{}) string
- func NotStartsWith(attribute string, value interface{}) string
- func NotTouches(attribute string, values []interface{}) string
- func Offset(offset int) string
- func Or(queries []string) string
- func OrderAsc(attribute string) string
- func OrderDesc(attribute string) string
- func OrderRandom() string
- func Overlaps(attribute string, values []interface{}) string
- func Regex(attribute string, pattern string) string
- func Search(attribute string, value interface{}) string
- func Select(attributes interface{}) string
- func StartsWith(attribute string, value interface{}) string
- func Touches(attribute string, values []interface{}) string
- func UpdatedAfter(value interface{}) string
- func UpdatedBefore(value interface{}) string
- func UpdatedBetween(start, end interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
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 ¶
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 ¶
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 CursorAfter ¶
func CursorBefore ¶
func CursorBefore(documentId interface{}) string
func DistanceEqual ¶
func DistanceGreaterThan ¶
func DistanceLessThan ¶
func DistanceNotEqual ¶
func ElemMatch ¶
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 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 GreaterThanEqual ¶
func Intersects ¶
func LessThanEqual ¶
func NotBetween ¶
func NotContains ¶
func NotCrosses ¶
func NotEndsWith ¶
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 NotOverlaps ¶
func NotStartsWith ¶
func NotTouches ¶
func OrderRandom ¶
func OrderRandom() string
func Regex ¶
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 StartsWith ¶
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.