Create a node of a certain type using neography

69 views Asked by At

I'm successfully using the neography gem, with one small problem. I cannot seem to specify the type of node I want. The API I'm using is:

@neo.create_node({doors: 4, brand: 'ford', model: 'fiesta'})

I want to be able to do the equivalent of:

CREATE (c:Car {doors: 4, brand: 'ford', model: 'fiesta'})

Looking at the source code this doesn't seem to be possible, at least not via create_node. Thanks in advance for the help!

0

There are 0 answers