Documentation ¶
Index ¶
- type GeoCoordinatesParameter
- type WhereBuilder
- func (b *WhereBuilder) Build() *models.WhereFilter
- func (b *WhereBuilder) String() string
- func (b *WhereBuilder) WithOperands(operands []*WhereBuilder) *WhereBuilder
- func (b *WhereBuilder) WithOperator(operator WhereOperator) *WhereBuilder
- func (b *WhereBuilder) WithPath(path []string) *WhereBuilder
- func (b *WhereBuilder) WithValueBoolean(valueBoolean ...bool) *WhereBuilder
- func (b *WhereBuilder) WithValueDate(valueDate ...time.Time) *WhereBuilder
- func (b *WhereBuilder) WithValueGeoRange(valueGeoRange *GeoCoordinatesParameter) *WhereBuilder
- func (b *WhereBuilder) WithValueInt(valueInt ...int64) *WhereBuilder
- func (b *WhereBuilder) WithValueNumber(valueNumber ...float64) *WhereBuilder
- func (b *WhereBuilder) WithValueString(valueString ...string) *WhereBuilder
- func (b *WhereBuilder) WithValueText(valueText ...string) *WhereBuilder
- type WhereOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeoCoordinatesParameter ¶
type GeoCoordinatesParameter struct {
Latitude, Longitude, MaxDistance float32
}
GeoCoordinatesParameter parameters in where filter
type WhereBuilder ¶
type WhereBuilder struct {
// contains filtered or unexported fields
}
func Where ¶
func Where() *WhereBuilder
func (*WhereBuilder) Build ¶
func (b *WhereBuilder) Build() *models.WhereFilter
Build creates a *models.WhereFilter from a *WhereBuilder
func (*WhereBuilder) String ¶
func (b *WhereBuilder) String() string
String formats the where builder as a string for GQL queries
func (*WhereBuilder) WithOperands ¶
func (b *WhereBuilder) WithOperands(operands []*WhereBuilder) *WhereBuilder
func (*WhereBuilder) WithOperator ¶
func (b *WhereBuilder) WithOperator(operator WhereOperator) *WhereBuilder
WithOperator the operator to be used
func (*WhereBuilder) WithPath ¶
func (b *WhereBuilder) WithPath(path []string) *WhereBuilder
WithPath the list of properties that should be looked for
func (*WhereBuilder) WithValueBoolean ¶
func (b *WhereBuilder) WithValueBoolean(valueBoolean ...bool) *WhereBuilder
WithValueBoolean the boolean value in where filter
func (*WhereBuilder) WithValueDate ¶
func (b *WhereBuilder) WithValueDate(valueDate ...time.Time) *WhereBuilder
WithValueDate the date value in where filter
func (*WhereBuilder) WithValueGeoRange ¶
func (b *WhereBuilder) WithValueGeoRange(valueGeoRange *GeoCoordinatesParameter) *WhereBuilder
WithValueGeoRange the string value in where filter
func (*WhereBuilder) WithValueInt ¶
func (b *WhereBuilder) WithValueInt(valueInt ...int64) *WhereBuilder
WithValueInt the int value in where filter
func (*WhereBuilder) WithValueNumber ¶
func (b *WhereBuilder) WithValueNumber(valueNumber ...float64) *WhereBuilder
WithValueNumber the number value in where filter
func (*WhereBuilder) WithValueString ¶
func (b *WhereBuilder) WithValueString(valueString ...string) *WhereBuilder
WithValueString the string value in where filter
func (*WhereBuilder) WithValueText ¶
func (b *WhereBuilder) WithValueText(valueText ...string) *WhereBuilder
WithValueText the string value in where filter
type WhereOperator ¶
type WhereOperator string
WhereOperator used in Where Argument builder
const And WhereOperator = "And"
And where operator
const ContainsAll WhereOperator = "ContainsAll"
ContainsAll where operator
const ContainsAny WhereOperator = "ContainsAny"
ContainsAny where operator
const Equal WhereOperator = "Equal"
Equal where operator
const GreaterThan WhereOperator = "GreaterThan"
GreaterThan where operator
const GreaterThanEqual WhereOperator = "GreaterThanEqual"
GreaterThanEqual where operator
const IsNull WhereOperator = "IsNull"
IsNull where operator
const LessThan WhereOperator = "LessThan"
LessThan where operator
const LessThanEqual WhereOperator = "LessThanEqual"
LessThanEqual where operator
const Like WhereOperator = "Like"
Like where operator
const Not WhereOperator = "Not"
Not where operator
const NotEqual WhereOperator = "NotEqual"
NotEqual where operator
const Or WhereOperator = "Or"
Or where operator
const WithinGeoRange WhereOperator = "WithinGeoRange"
WithinGeoRange where operator