I am curious if something like this is allowed and works as expected:
schema.edgeLabel("CreatedBy")
.properties("createdDate")
.connection("Entity","User")
.create()
schema.edgeLabel("CreatedBy")
.connection("Attribute","User")
.create()
I wonder if I run both against the schema if the would only allow property createdDate
between Entity
and User
but not between Attribute
and User
. Right now it says that CreatedBy
already exists, so I have it like that (which isn't constraining the way I want)
schema.edgeLabel("CreatedBy")
.properties("createdDate")
.connection("Attribute","User")
.connection("Entity","User")
.create()
Thanks!