Skip to content

Commit

Permalink
Added another example to the latitude/longitude discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
krlawrence committed Jan 2, 2018
1 parent 9e51c08 commit 184cbc1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion book/Gremlin-Graph-Guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8751,8 +8751,16 @@ are synonymous in this case.
g.V().filter(values('lat').is(gt(77))).valueMap('city','lat')
----
As discussed earlier in the book, you can often just use 'has' steps instead of
'where' or 'filter' steps. We could have written the previous query as follows.
[source,groovy]
----
g.V().has('lat',gt(77)).valueMap('city','lat')
----
It turns out that just two airports in the graph are located that far North as shown
below in the results from running the query.
below in the results from running either form of the query.
[source,groovy]
----
Expand Down

0 comments on commit 184cbc1

Please sign in to comment.