Skip to content

Apoc usage

angrykoala edited this page Jan 30, 2023 · 44 revisions

This page documents all instances in which apoc is used:

Validate

  • util.validatePredicate
  • util.validate

Both validate and validatePredicate are widely used for auth and constraints. There is no Cypher alternative, but it could be possible to run a transaction and perform the validations in javascript, although this would increase code complexity on those cases.

There are no known performance issues with using these.

ConvertFormat

  • date.convertFormat

Used for projection: apoc.date.convertFormat(toString(${value}), "iso_zoned_date_time", "iso_offset_date_time"). It may be possible to create a javascript alternative.

There are no known performance issues with using these.

DoIt

  • apoc.cypher.doIt

Used in translateTopLevelCypher for mutations, executing the mutation statement before projections.

This may possibly be removed with subqueries and may impact performance.

Update: This is removed on #2805

Clone this wiki locally