Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explanation of "__" better moved to section 3.14 #112

Closed
dfirka opened this issue Jul 11, 2018 · 2 comments
Closed

Explanation of "__" better moved to section 3.14 #112

dfirka opened this issue Jul 11, 2018 · 2 comments

Comments

@dfirka
Copy link

dfirka commented Jul 11, 2018

I am new to Java/Groovy, so i couldn understand the symbol

__

in query

g.V().has('airport','code','AUS').       
out().not(where(__.in('contains').has('code','US'))).       
valueMap('code','city')

Which is explained later in page 132:

Notice that I added the "__." (underscore underscore period) in front of the in(). This is shorthand for "the thing we are currently looking at", so in this case, the result of the has step.

it will be better to move that paragraph to the first usage of __

thxs
dan

@krlawrence krlawrence self-assigned this Jul 11, 2018
@krlawrence
Copy link
Owner

Thanks for taking the time to provide the feedback Dan (@dfirka ). I will definitely do something to make that improvement.

@krlawrence
Copy link
Owner

Fixed in Release 280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants