Closed softwareeverything closed 6 years ago
Now, I made drop uuid
constraint at migrations after that added uid
constraint but it still throw the same error.
Hey @softwareeverything sorry for the delay in responding!
If you make something an id_property
(uuid
is the default for this, but you've made a uid
property which is the id_property
), it's not considered one of the attributes and it can't be set by you.
I'd suggest leaving uuid
as the default id_property
(which means you don't need to specify anything for id_property
) and make a regular property called uid
. Then you can set a unique constraint on uid
(in addition to a unique constraint on uuid
). This makes sure that the property is unique but it will also give you an index for querying on the uid
property.
Closing because I don't think there's a feature / issue here, but happy to continue the conversation
I'm trying to create a new user for neo4j;
User.create!(uid: 101, name: 'Jane Garden')
But I get an error which is;
Neo4j::Shared::Property::UndefinedPropertyError: Undefined properties: uid
models/user.rb;
I'm using twitter api and I used
uid
for twitter user id.db/neo4j/migration;
Runtime information:
Runtime information:
Neo4j database
version: neo4j 3.3.1neo4j gem
version: 9.0.7neo4j-core gem
version: 8.1.0