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
{{ message }}
This repository was archived by the owner on Jun 6, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/user-guide/query/gaffer-syntax/filtering.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -605,7 +605,7 @@ total for all the `added` and `removed` properties.
605
605
```python
606
606
elements = g_connector.execute_operation(
607
607
operation = g.GetElements(
608
-
input = [g.EntitySeed(vertex = "John")]
608
+
input = [g.EntitySeed(vertex = "John")],
609
609
view = g.View(
610
610
edges = [
611
611
g.ElementDefinition(
@@ -659,7 +659,7 @@ total for all the `added` and `removed` properties.
659
659
Elements in Gaffer are often stored in daily time buckets; this allows users to
660
660
query a summary of the elements that occurred on a particular day. For example,
661
661
a count of the commits John made to the repository on the first of the month. The daily time
662
-
buckets are controlled by using the groupBy properties.
662
+
buckets are controlled by using the `groupBy` properties.
663
663
664
664
You can get edges with the same source and destination aggregrated together,
665
665
regardless of any dates. This is achieved by overriding the `groupBy` field
@@ -719,7 +719,7 @@ and to instead summarise all elements, e.g. all John committed to repo edges.
719
719
```python
720
720
elements = g_connector.execute_operation(
721
721
operation = g.GetElements(
722
-
input = [g.EntitySeed(vertex = "John")]
722
+
input = [g.EntitySeed(vertex = "John")],
723
723
view = g.View(
724
724
edges = [
725
725
g.ElementDefinition(
@@ -804,7 +804,7 @@ If you apply some pre-aggregation filtering, you can also select a time window t
804
804
```python
805
805
elements = g_connector.execute_operation(
806
806
operation = g.GetElements(
807
-
input = [g.EntitySeed(vertex = "John")]
807
+
input = [g.EntitySeed(vertex = "John")],
808
808
view = g.View(
809
809
edges = [
810
810
g.ElementDefinition(
@@ -841,11 +841,11 @@ If you apply some pre-aggregation filtering, you can also select a time window t
841
841
There is also a more advanced feature of query-time aggregation which allows you to override
842
842
the logic of how Gaffer aggregates properties. For example, by default the count property is aggregated
843
843
with Sum, as above, but at query time you can force the count to be aggregated using another operator,
844
-
e.g. the Min operator. This would allow you to find things such as the minimum daily count.
844
+
e.g. the [Min](../../../reference/binary-operators-guide/koryphe-operators.md#min) operator. This would allow you to find things such as the minimum daily count.
845
845
This feature does not affect any of the persisted values and any ingest aggregation that has already
846
846
occurred will not be modified.
847
847
848
-
??? example
848
+
!!! example ""
849
849
850
850
This asks at query time what was the minimum `added` by John on one of his commits
851
851
between two dates. This is done by adding an extra 'aggregator' to the operation View.
@@ -911,7 +911,7 @@ occurred will not be modified.
911
911
```python
912
912
elements = g_connector.execute_operation(
913
913
operation = g.GetElements(
914
-
input = [g.EntitySeed(vertex = "John")]
914
+
input = [g.EntitySeed(vertex = "John")],
915
915
view = g.View(
916
916
edges = [
917
917
g.ElementDefinition(
@@ -945,7 +945,7 @@ occurred will not be modified.
945
945
```
946
946
947
947
More commonly, you will want to set the groupBy to empty for all groups in your schema.
948
-
This can be done using the ``globalElements` section in the view:
948
+
This can be done using the `globalElements` section in the view:
949
949
950
950
!!! example ""
951
951
@@ -985,7 +985,7 @@ This can be done using the ``globalElements` section in the view:
0 commit comments