Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllQueryOperators = []QueryOperators{ QueryOperatorsEqual, QueryOperatorsNotEqual, QueryOperatorsContains, QueryOperatorsIn, QueryOperatorsNotIn, QueryOperatorsGreaterThan, QueryOperatorsLessThan, QueryOperatorsLessThanOrEqual, QueryOperatorsGreaterThanOrEqual, QueryOperatorsRegex, }
View Source
var AllQueryType = []QueryType{ QueryTypeDate, QueryTypeDeleted, }
View Source
var AllRefRoot = []RefRoot{ RefRootAppRef, }
Functions ¶
This section is empty.
Types ¶
type QueryOperatorAndDate ¶
type QueryOperatorAndDate struct { Op QueryOperators `json:"op" bson:"-" query:"op"` Value *time.Time `json:"value,omitempty" bson:"-" query:"value"` }
type QueryOperatorAndValue ¶
type QueryOperatorAndValue struct { Op QueryOperators `json:"op" bson:"-" query:"op"` Value any `json:"value,omitempty" bson:"-" query:"value"` }
type QueryOperatorFieldAndValue ¶
type QueryOperatorFieldAndValue struct { Field string `json:"field" bson:"-" query:"field"` Op QueryOperators `json:"op" bson:"-" query:"op"` Value any `json:"value,omitempty" bson:"-" query:"value"` Exists *bool `json:"exists,omitempty" bson:"-" query:"fieldExists"` }
type QueryOperators ¶
type QueryOperators string
const ( QueryOperatorsEqual QueryOperators = "Equal" QueryOperatorsNotEqual QueryOperators = "NotEqual" QueryOperatorsContains QueryOperators = "Contains" QueryOperatorsIn QueryOperators = "In" QueryOperatorsNotIn QueryOperators = "NotIn" QueryOperatorsGreaterThan QueryOperators = "GreaterThan" QueryOperatorsLessThan QueryOperators = "LessThan" QueryOperatorsLessThanOrEqual QueryOperators = "LessThanOrEqual" QueryOperatorsGreaterThanOrEqual QueryOperators = "GreaterThanOrEqual" QueryOperatorsRegex QueryOperators = "Regex" )
func (QueryOperators) IsValid ¶
func (e QueryOperators) IsValid() bool
func (QueryOperators) MarshalGQL ¶
func (e QueryOperators) MarshalGQL(w io.Writer)
func (QueryOperators) String ¶
func (e QueryOperators) String() string
func (*QueryOperators) UnmarshalGQL ¶
func (e *QueryOperators) UnmarshalGQL(v interface{}) error
type QueryType ¶
type QueryType string
func (QueryType) MarshalGQL ¶
func (*QueryType) UnmarshalGQL ¶
type QueryValue ¶
type QueryValue struct {
Value any `json:"value,omitempty" bson:"-" query:"value"`
}
type RefRoot ¶
type RefRoot string
const (
RefRootAppRef RefRoot = "AppRef"
)
func (RefRoot) MarshalGQL ¶
func (*RefRoot) UnmarshalGQL ¶
type ValueInput ¶
type ValueInput struct {
Value string `json:"value" bson:"-"`
}
type ValueOutput ¶
type ValueOutput struct {
Value string `json:"value" bson:"-"`
}
Click to show internal directories.
Click to hide internal directories.