You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/reading/filtering.md
+60-1Lines changed: 60 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ If you want to use the new filter notation in that case, prefix the parameter va
125
125
GET /articles?filter[caption]=tech&filter=expr:equals(caption,'cooking')) HTTP/1.1
126
126
```
127
127
128
-
##Custom Filters
128
+
# Custom Filters
129
129
130
130
There are multiple ways you can add custom filters:
131
131
@@ -134,3 +134,62 @@ There are multiple ways you can add custom filters:
134
134
3. Add an implementation of `IQueryConstraintProvider` to supply additional `FilterExpression`s, which are combined with existing filters using AND operator
135
135
4. Override `EntityFrameworkCoreRepository.ApplyQueryLayer` to adapt the `IQueryable<T>` expression just before execution
136
136
5. Take a deep dive and plug into reader/parser/tokenizer/visitor/builder for adding additional general-purpose filter operators
137
+
138
+
# Filter syntax
139
+
140
+
For reference, we provide the EBNF grammar for filter expressions below (in [ANTLR4](https://github.com/antlr/antlr4) style):
0 commit comments