Well,
you get as the result from your expression whatever the last statement
is, since from a script, there is only one return construct. You could
try putting things into a map or so ( both the count and the list of
nodes) and return that?

Alternatively, we could send back all bound variables in the return,
but that is very cryptic in its side effects and IMHO not a clean way
to do this. WDYT?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Wed, Jun 15, 2011 at 9:51 PM, Marcelo Barbudas <nos...@gmail.com> wrote:
> Hey Peter,
>
> I think I understand.
>
> So that means I can get a sort listed of nodes (the contents of m keys),
> but not the actual number on which the sorting was based (m values)?
>
> -m.
>
> On 06/15/2011 10:46 PM, Peter Neubauer wrote:
>> Marcelo,
>> the Gremlin plugin is transforming the results from a query into Neo4j
>> REST conform structures, while the console is a pure command line
>> interpreter, outputting strings that are not consumable by clients.
>>
>> Does that make sense?
>>
>> Cheers,
>>
>> /peter neubauer
>>
>> GTalk:      neubauer.peter
>> Skype       peter.neubauer
>> Phone       +46 704 106975
>> LinkedIn   http://www.linkedin.com/in/neubauer
>> Twitter      http://twitter.com/peterneubauer
>>
>> http://www.neo4j.org               - Your high performance graph database.
>> http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
>> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>>
>>
>>
>> On Wed, Jun 15, 2011 at 9:28 PM, Marcelo Barbudas <nos...@gmail.com> wrote:
>>>>
>>>> n.outE.inV.inE.outV.groupCount(m) >> -1;m.sort{a,b -> b.value <=> a.value}
>>>
>>> Yep, this versions runs and returns.
>>>
>>> However the returned values from the web interface are different from
>>> the ones via the gremlin plugin.
>>>
>>> -m.
>>> _______________________________________________
>>> Neo4j mailing list
>>> User@lists.neo4j.org
>>> https://lists.neo4j.org/mailman/listinfo/user
>>>
>> _______________________________________________
>> Neo4j mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
>
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to