Skip to content

Commit 184cbc1

Browse files
committed
Added another example to the latitude/longitude discussion
1 parent 9e51c08 commit 184cbc1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

book/Gremlin-Graph-Guide.adoc

+9-1
Original file line numberDiff line numberDiff line change
@@ -8751,8 +8751,16 @@ are synonymous in this case.
87518751
g.V().filter(values('lat').is(gt(77))).valueMap('city','lat')
87528752
----
87538753
8754+
As discussed earlier in the book, you can often just use 'has' steps instead of
8755+
'where' or 'filter' steps. We could have written the previous query as follows.
8756+
8757+
[source,groovy]
8758+
----
8759+
g.V().has('lat',gt(77)).valueMap('city','lat')
8760+
----
8761+
87548762
It turns out that just two airports in the graph are located that far North as shown
8755-
below in the results from running the query.
8763+
below in the results from running either form of the query.
87568764
87578765
[source,groovy]
87588766
----

0 commit comments

Comments
 (0)