Open radekdp opened 11 months ago
No response
Hi, I need add custom filter rule in my before function (list hook):
request.query = { ...query, ['filters.role']: 'admin', ['filters.storeId']: In([1, 2]), };
but not working typeorm function IN(), it's possible to do that?
every time
{ "@adminjs/design-system": "^4.0.3", "@adminjs/express": "^6.0.1", "@adminjs/import-export": "^3.0.0", "@adminjs/nestjs": "^6.0.1", "@adminjs/themes": "^1.0.1", "@adminjs/typeorm": "^5.0.0", "@chirpstack/chirpstack-api": "^4.4.0", "@nestjs/common": "^10.2.6", "@nestjs/config": "^3.1.1", "@nestjs/core": "^10.2.6", "@nestjs/microservices": "^10.2.6", "@nestjs/platform-express": "^10.2.6", "@nestjs/typeorm": "^10.0.0", "adminjs": "^7.2.2", "bcrypt": "^5.1.1", "class-transformer": "^0.5.1", "class-validator": "^0.14.0", "cpx": "^1.5.0", "crypto-js": "^4.1.1", "dayjs": "^1.11.10", "eslint-plugin-legacy-decorators": "^1.0.0", "express-formidable": "^1.2.0", "express-session": "^1.17.3", "json-rules-engine": "^6.4.2", "mqtt": "^4.3.7", "pg": "^8.11.3", "postgresql": "0.0.1", "react-bootstrap": "2.8.0", "recharts": "^2.8.0", "reflect-metadata": "^0.1.13", "rimraf": "^5.0.1", "rxjs": "^7.8.1", "tslib": "^2.6.2", "typeorm": "^0.3.12" }
Contact Details
No response
What happened?
Hi, I need add custom filter rule in my before function (list hook):
but not working typeorm function IN(), it's possible to do that?
Bug prevalence
every time
AdminJS dependencies version
{ "@adminjs/design-system": "^4.0.3", "@adminjs/express": "^6.0.1", "@adminjs/import-export": "^3.0.0", "@adminjs/nestjs": "^6.0.1", "@adminjs/themes": "^1.0.1", "@adminjs/typeorm": "^5.0.0", "@chirpstack/chirpstack-api": "^4.4.0", "@nestjs/common": "^10.2.6", "@nestjs/config": "^3.1.1", "@nestjs/core": "^10.2.6", "@nestjs/microservices": "^10.2.6", "@nestjs/platform-express": "^10.2.6", "@nestjs/typeorm": "^10.0.0", "adminjs": "^7.2.2", "bcrypt": "^5.1.1", "class-transformer": "^0.5.1", "class-validator": "^0.14.0", "cpx": "^1.5.0", "crypto-js": "^4.1.1", "dayjs": "^1.11.10", "eslint-plugin-legacy-decorators": "^1.0.0", "express-formidable": "^1.2.0", "express-session": "^1.17.3", "json-rules-engine": "^6.4.2", "mqtt": "^4.3.7", "pg": "^8.11.3", "postgresql": "0.0.1", "react-bootstrap": "2.8.0", "recharts": "^2.8.0", "reflect-metadata": "^0.1.13", "rimraf": "^5.0.1", "rxjs": "^7.8.1", "tslib": "^2.6.2", "typeorm": "^0.3.12" }
What browsers do you see the problem on?
No response
Relevant log output
No response
Relevant code that's giving you issues
No response