Skip to content

Commit e836a3e

Browse files
author
Phil Varner
authored
Merge pull request #26 from emmanuelmathot/isinlistexample
IN List predicate example
2 parents 8b72313 + 4b29f1f commit e836a3e

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [v1.0.0-rc.3] - 2023-10-18
99

10+
### Added
11+
12+
- IsInListPredicate example
13+
1014
### Changed
1115

1216
- Fixed several issues with OpenAPI specification

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,3 +1144,34 @@ filter=ACCENTI(provider) = ACCENTI('tiburón')
11441144
}
11451145
}
11461146
```
1147+
1148+
### Example 15: Using the IN List predicate
1149+
1150+
The predefined function `IN` allows for checking if a value is in a list of values.
1151+
1152+
#### Example 15: cql2-text (GET)
1153+
1154+
```text
1155+
filter=keywords IN ('fire', 'forest', 'wildfire')
1156+
```
1157+
1158+
#### Example 15: cql2-json (POST)
1159+
1160+
```json
1161+
{
1162+
"filter-lang": "cql2-json",
1163+
"filter": {
1164+
"op": "in",
1165+
"args": [
1166+
{
1167+
"property": "keywords"
1168+
},
1169+
[
1170+
"fire",
1171+
"forest",
1172+
"wildfire"
1173+
]
1174+
]
1175+
}
1176+
}
1177+
```

0 commit comments

Comments
 (0)