Module: ActiveCypher::Model::Countable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base, Relationship
- Defined in:
- lib/active_cypher/model/countable.rb
Overview
Mixin that gives any graph element (node or edge) an efficient .count
It issues a single Cypher COUNT() query instead of loading rows.
Because sometimes you just want to know how many regrets you have, without reliving each one.
A little ORM sorcery, a dash of witchcraft, and—very rarely—some back magick make this possible.