and_query: Create a combined filter

Description Usage Arguments Details See Also Examples

Description

Create a combined filter

Usage

1
2
3
4
5

Arguments

...

Raw odata queries or query options.

Details

This function can be used with raw values or query options

  1. Raw odata queries Raw OData can be passed as string. It's the responsibility of the caller that the argument is valid syntax and values are escaped.

  2. Query options Query options can be passed as named parameters.

Query options should be of the following form: property.operator = value

See Also

https://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part2-url-conventions/

Examples

1
2
3
4
5
6
7
8
and_query("Column eq OtherColumn",
          FirstName.startswith = 'A',
          LastName.eq = 'Scott')

or_query("ExpireDate eq null",
         ExpireDate.lt = "2020-07-07")

not_query(or_query(Age.lt = 21, Age.gt = 65))

ODataQuery documentation built on July 5, 2021, 5:09 p.m.