Files
puaros/packages/guardian/src/infrastructure/constants/orm-methods.ts
imfozilbek 8dd445995d fix: eliminate magic strings and fix aggregate boundary detection
- Extract DDD folder names and repository method suggestions to constants
- Fix regex pattern to support relative paths (domain/... without leading /)
- Add non-aggregate folder exclusions (constants, shared, factories, etc.)
- Remove findAll, exists, count from ORM_QUERY_METHODS (valid domain methods)
- Add exists, count, countBy patterns to domainMethodPatterns
- Add aggregate boundary test examples
2025-11-25 00:29:02 +05:00

22 lines
383 B
TypeScript

export const ORM_QUERY_METHODS = [
"findOne",
"findMany",
"findFirst",
"findAndCountAll",
"insert",
"insertMany",
"insertOne",
"updateOne",
"updateMany",
"deleteOne",
"deleteMany",
"select",
"query",
"execute",
"run",
"exec",
"aggregate",
] as const
export type OrmQueryMethod = (typeof ORM_QUERY_METHODS)[number]