Mmh,
ok, I get the thought. Will see how we could do that. How would you
like to submit this? JSON with "\n" instead of ";"? Wanna write a test
for this.

Now back to parental leave and the catastrophe in Norway.

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 Fri, Jul 22, 2011 at 10:25 PM, Guillaume ALLEE
<guillaume.al...@capgemini.com> wrote:
> Hi Peter,
>
> Thanks for your answer. I knew that it was possible to put semi colons for
> line break ;-)
>
> To be more precise, I have the following script that was given kindly given
> by Marko on another thread.
>
>       m = [:]
>        g.idx('id')[[object_type:'A']].transform{
>                if(it.out('USES'){it.object_type.equals('B')}.count() > 1)
>                        "count = 1"
>                else
>                        "count > 1"
>                }.groupCount(m) >> -1
>        m
>
> I know it is possible to do the same following in one line  (see below)
> however I would like, for more readability to be able to submit it to the
> REST gremlin plugin with multiple lines.
>
> m = [:]
> ;g.idx('id')[[object_type:'A']].transform{if(it.out('USES'){it.object_type.equals('B')}.count()
>> 1) "count = 1" else "count > 1"}.groupCount(m) >> -1 ; m
>
>
> Guillaume in holiday tonight  ;-)
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-Gremlin-plugin-line-break-in-script-tp3191845p3192325.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> 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