and_query {ODataQuery}R Documentation

Create a combined filter

Description

Create a combined filter

Usage

and_query(...)

or_query(...)

not_query(...)

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

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))


[Package ODataQuery version 0.5.3 Index]