The online console doesn't support parameters.

But all APIs do, the http endpoints, java API, also the jdbc driver
(although the jdbc driver is limited to numeric parameters).

usually you pass in a map of parameters to the APIs depending on which API
you call.

In JDBC you would do:

PreparedStatement stmt = con.prepareStatement("create (:Role {1})");
stmt.setObject(1,map("type","ROLE_ADHERENT3","name","ROLE_
ADHERENT3","authority","ROLE_ADHERENT3"));

You  probably want to use a Label for your sub-type too?

Michael



On Sat, Jan 4, 2014 at 5:28 PM, Hyoga <[email protected]> wrote:

> Hi all,
>
> I may be am asking a dumb question.
> Is there a way to write a Cypher request using parameters ?
> Let's say:
>
>> create (:Role {req})
>
>
> I have tried things like:
>
>> create (:Role {req},
>> {"req":{"type":"ROLE_ADHERENT3","name":"ROLE_ADHERENT3","authority":"ROLE_ADHERENT3"}}
>> )
>
> And others variants, nothing seems to work.
>
> I precise I am using the JDBC driver and the online console (
> http://www.neo4j.org/learn/try).
> Is that even possible ?
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to