-
Notifications
You must be signed in to change notification settings - Fork 8
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
Any way to query data from multiple nodes and return it all as one row? #5
Comments
You can do something like this:
|
Awesome, thanks. Had no idea you could do this. |
@circles-arrows , using the resultSet above, how would one go about getting the same objects that are returned from the LoadWhere() method. For example, if we had |
In the next version of Blueprint41 this will be available, however in the current version of Blueprint41 you will get a Neo4j “INode” object instead.
From: ngallegos [mailto:notifications@github.com]
Sent: Saturday, 29 August 2020 12:42 am
To: circles-arrows/blueprint41 <blueprint41@noreply.github.com>
Cc: CIRCLES ARROWS LIMITED <info@circles-arrows.com>; Mention <mention@noreply.github.com>
Subject: Re: [circles-arrows/blueprint41] Any way to query data from multiple nodes and return it all as one row? (#5)
@circles-arrows <https://github.com/circles-arrows> , using the resultSet above, how would one go about getting the same objects that are returned from the LoadWhere() method. For example, if we had .Return(zipCode, state, city) instead of .Return(zipCode.Zip, state.Abbr, city.Name), how would I go about extracting the actual ZipCode, State, and City objects that would have come from ZipCode.LoadWhere(), State.LoadWhere() and City.LoadWhere() respectively?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#5 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHROZP5CWRXFUKKZKQHVTFDSC7M4NANCNFSM4OHBWE2Q> . <https://github.com/notifications/beacon/AHROZPY5QJM5NHCJDO4IP3TSC7M4NA5CNFSM4OHBWE22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFCZZEVI.gif>
|
Sounds good. Thank you! |
For example, in our data structure we have Areas related to our business model which contain many ZipCodes and then each ZIpCode is associated with a City which is associated with a State. I would like to be able to take in a single Area Uid and then return a list of ZipCodes, the City Name it's in, and the state abbreviation.
What I'm looking for it to do something like this:
Which generates the exact cypher I'd like to be able to run, but cannot figure out a way to run this query which might return the correct anonymous data types. I only see the
.LoadWhere()
queries on the created OGM objects.
I also honestly cannot tell the benfits of putting in multiple values in the
.Return
method either. It always seems like the return values are going to be attempted to be parsed into whatever static method you're running the .LoadWhere from.Am I missing something or is this just a limitation of blueprint41?
The text was updated successfully, but these errors were encountered: