Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create schema for neo4j graph database in nodejs?

I was thinking, How we can prevent user/developer from adding unwanted nodes/relationships/properties?

What I read was - we should impose those schema's at application level. So, how can we do that in Node.js?

Is there any example on this? Or can someone post some code here?

like image 232
C.P. Avatar asked Dec 11 '25 19:12

C.P.


1 Answers

It depends how your applications works.

  1. You can create your own validation in your application, but it depends on the type of your application.

  2. Better option is to create your own unmanaged extension for Neo4j. You can use Transaction Event API for that - http://graphaware.com/neo4j/transactions/2014/07/11/neo4j-transaction-event-api.html

  3. GraphAware provides paid extensions for schema enforcemen - http://graphaware.com/enterprise/

like image 159
MicTech Avatar answered Dec 13 '25 08:12

MicTech



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!