Documentation ¶
Index ¶
- type FilterDocument
- func Eq[T any](field string, value T) FilterDocument
- func Exists(field string, value bool) FilterDocument
- func Filter(docs ...FilterDocument) FilterDocument
- func Gt[T any](field string, value T) FilterDocument
- func Gte[T any](field string, value T) FilterDocument
- func In[T any](field string, value []T) FilterDocument
- func Lt[T any](field string, value T) FilterDocument
- func Lte[T any](field string, value T) FilterDocument
- func Ne[T any](field string, value T) FilterDocument
- func Nin[T any](field string, value []T) FilterDocument
- type M
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterDocument ¶ added in v0.1.0
FilterDocument represents filter document.
func Eq ¶ added in v0.1.0
func Eq[T any](field string, value T) FilterDocument
Eq creates a $eq query selector.
func Exists ¶ added in v0.1.0
func Exists(field string, value bool) FilterDocument
Exists creates a $exists query selector.
func Filter ¶
func Filter(docs ...FilterDocument) FilterDocument
func Gt ¶ added in v0.1.0
func Gt[T any](field string, value T) FilterDocument
Gt creates a $gt query selector.
func Gte ¶ added in v0.1.0
func Gte[T any](field string, value T) FilterDocument
Gte creates a $gte query selector.
func In ¶ added in v0.1.0
func In[T any](field string, value []T) FilterDocument
In creates a $in query selector.
func Lt ¶ added in v0.1.0
func Lt[T any](field string, value T) FilterDocument
Lt creates a $lt query selector.
func Lte ¶ added in v0.1.0
func Lte[T any](field string, value T) FilterDocument
Lte creates a $lte query selector.
func Ne ¶ added in v0.1.0
func Ne[T any](field string, value T) FilterDocument
Ne creates a $ne query selector.
func Nin ¶ added in v0.1.0
func Nin[T any](field string, value []T) FilterDocument
Nin creates a $nin query selector.
Click to show internal directories.
Click to hide internal directories.