Skip to content

Commit ac9efca

Browse files
committed
One more test case
1 parent 2374c97 commit ac9efca

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

examples/sqlite/tests/query_tests.rs

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,3 +1335,48 @@ async fn country_having_city() {
13351335
"#,
13361336
)
13371337
}
1338+
1339+
#[tokio::test]
1340+
async fn film_filter_or() {
1341+
let schema = schema().await;
1342+
1343+
assert_eq(
1344+
schema
1345+
.execute(
1346+
r#"
1347+
{
1348+
film(
1349+
filters: {
1350+
or: [{ title: { contains: "LIFE" } }, { title: { contains: "DOG" } }]
1351+
}
1352+
) {
1353+
nodes {
1354+
title
1355+
}
1356+
}
1357+
}
1358+
"#,
1359+
)
1360+
.await,
1361+
r#"
1362+
{
1363+
"film": {
1364+
"nodes": [
1365+
{
1366+
"title": "ANGELS LIFE"
1367+
},
1368+
{
1369+
"title": "ARABIA DOGMA"
1370+
},
1371+
{
1372+
"title": "DOGMA FAMILY"
1373+
},
1374+
{
1375+
"title": "LIFE TWISTED"
1376+
}
1377+
]
1378+
}
1379+
}
1380+
"#,
1381+
)
1382+
}

0 commit comments

Comments
 (0)