Open mjmare opened 7 years ago
There is some documentation for nodeset but not on actually creating instances. It was kind of designed as something the neomodel api produces for you.
Having said that i can see use cases for starting from a bunch of nodes retrieved directly through cypher then producing a nodeset to query further.
Could you perhaps give me example of how you see it working or what you are trying to achieve.
On 5 Feb 2017 4:46 p.m., "mjmare" notifications@github.com wrote:
Nodeset provides useful filtering functions. Would it be possible to use Nodeset with a list of nodes (Neomodel nodes) obtained with, say, a cypher query?
It would be useful to document how a Nodeset is created.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/robinedwards/neomodel/issues/232, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ0YQLj-zoBJ-yqPaYpx9sEXGzmr77qks5rZe7ugaJpZM4L3h-9 .
My usecase today was a situation where I had a cypher query that returned a list of nodes. Subsequently I'd like to do some adhoc filtering and sorting (since the data has s displayed in a table), for which a Nodeset seemed like just the thing.
Cool i will try and come up with something.
On 5 Feb 2017 23:10, "mjmare" notifications@github.com wrote:
My usecase today was a situation where I had a cypher query that returned a list of nodes. Subsequently I'd like to do some adhoc filtering and sorting (since the data has s displayed in a table), for which a Nodeset seemed like just the thing.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/robinedwards/neomodel/issues/232#issuecomment-277553977, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ0YdzWupyiR4ZvL6THuM1pQ45nKARLks5rZkjdgaJpZM4L3h-9 .
similarily i'd like to Model.nodes.all().order_by('some_property')
. (all
returns a list, not a NodeSet
)
Nodeset provides useful filtering functions. Would it be possible to use Nodeset with a list of nodes (Neomodel nodes) obtained with, say, a cypher query?
It would be useful to document how a Nodeset is created.