You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mongox-go-driver/mongox/query/preload.go

17 lines
332 B

package query
11 months ago
// Preloader is a filter to preload the result
type Preloader interface {
Preload() (preloads []string)
}
11 months ago
// Preload is a simple implementation of the Preloader filter
type Preload []string
var _ Preloader = Preload{}
// Preload returns a preload list
func (l Preload) Preload() (preloads []string) {
4 years ago
return l
}