func IDIn(ids ...string) comparison.PredFunc {
	args := []interface{}{}
	for _, v := range ids {
		args = append(args, v)
	}
	return func(preds []*comparison.Predicate) []*comparison.Predicate {
		return append(preds, &comparison.Predicate{
			Field: "id",
			Op:    comparison.In,
			Arg:   args,
		})
	}
}
IDIn in operator on ID field
package playerrepo
import (
	"time"
	"github.com/sf9v/nero/comparison"
	"github.com/sf9v/nero/test/integration/player"
)
func IDEq(id string) comparison.PredFunc {
	return func(preds []*comparison.Predicate) []*comparison.Predicate {
		return append(preds, &comparison.Predicate{
			Field: "id",
			Op:    comparison.Eq,
			Arg:   id,
		})
	}
}
func IDNotEq(id string) comparison.PredFunc {
	return func(preds []*comparison.Predicate) []*comparison.Predicate {
		return append(preds, &comparison.Predicate{
			Field: "id",
			Op:    comparison.NotEq,
			Arg:   id,
		})
	}
}