The Moose Collective
Well in my last post I added a few new attributes to my Database::Accessor::Element class and when playing about bout today I think I will have to revisit one of them 'aggregate'.
If I just leave it as it is
has 'aggregate' => (
is => 'rw',
isa => 'Str',
);
It will begin to break-down my API as a programmer could come along and enter a very specific Mongo item such as 'mergeObjects' or something odd from an SQL DB like 'DENSERANK' and that makes for a very inconstant API.
So I am just going to bite the bullet and add in a 'Type' for this attribute so lets have a look at that.