ApplyQueryOptions applies a set of QueryOptions and returns the result.
(opts ...QueryOption)
| 21 | |
| 22 | // ApplyQueryOptions applies a set of QueryOptions and returns the result. |
| 23 | func ApplyQueryOptions(opts ...QueryOption) QueryOptions { |
| 24 | q := QueryOptions{} |
| 25 | for _, o := range opts { |
| 26 | o(&q) |
| 27 | } |
| 28 | return q |
| 29 | } |
| 30 | |
| 31 | // Where adds an equality filter: field = value. |
| 32 | func Where(field string, value any) QueryOption { |
no outgoing calls
searching dependent graphs…