$key, 'type' => $attribute['type'], 'array' => $attribute['array'], ]); } $attributes[] = new Document([ 'key' => '$id', 'type' => Database::VAR_STRING, 'array' => false, ]); $attributes[] = new Document([ 'key' => '$createdAt', 'type' => Database::VAR_DATETIME, 'array' => false, ]); $attributes[] = new Document([ 'key' => '$updatedAt', 'type' => Database::VAR_DATETIME, 'array' => false, ]); $validators = [ new Limit(), new Offset(), new Cursor(), new Filter($attributes), new Order($attributes), ]; parent::__construct(...$validators); } }