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 ¶ added in v0.17.0
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 ¶ added in v0.17.0
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 ¶ added in v0.10.0
func CreatedAfter(value interface{}) string
func CreatedBefore ¶ added in v0.10.0
func CreatedBefore(value interface{}) string
func CreatedBetween ¶ added in v0.11.0
func CreatedBetween(start, end interface{}) string
func CursorAfter ¶
func CursorBefore ¶
func CursorBefore(documentId interface{}) string
func DistanceEqual ¶ added in v0.11.0
func DistanceGreaterThan ¶ added in v0.11.0
func DistanceLessThan ¶ added in v0.11.0
func DistanceNotEqual ¶ added in v0.11.0
func ElemMatch ¶ added in v0.17.0
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 ¶ added in v0.17.0
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 ¶ added in v0.11.0
func LessThanEqual ¶
func NotBetween ¶ added in v0.10.0
func NotContains ¶ added in v0.10.0
func NotCrosses ¶ added in v0.11.0
func NotEndsWith ¶ added in v0.10.0
func NotExists ¶ added in v0.17.0
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 ¶ added in v0.11.0
func NotOverlaps ¶ added in v0.11.0
func NotStartsWith ¶ added in v0.10.0
func NotTouches ¶ added in v0.11.0
func OrderRandom ¶ added in v0.12.0
func OrderRandom() string
func Regex ¶ added in v0.17.0
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 ¶ added in v0.10.0
func UpdatedAfter(value interface{}) string
func UpdatedBefore ¶ added in v0.10.0
func UpdatedBefore(value interface{}) string
func UpdatedBetween ¶ added in v0.11.0
func UpdatedBetween(start, end interface{}) string
Types ¶
This section is empty.