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

Reply via email to