Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See if node exists before creating in NeoModel

How do I check to see if a node exists before creating it in neomodel? Is there a way other than filter that will optimize my code?

like image 259
Rob Avatar asked Oct 25 '25 14:10

Rob


1 Answers

You might be looking for one of these batch operations:

  • create_or_update()
  • get_or_create()
like image 147
cybersam Avatar answered Oct 27 '25 06:10

cybersam