Rafał Dzięgielewski
Rafał Dzięgielewski
I haven't used `@nestjs/mongoose` personally but if it returns different metadata than `mongoose`, it won't work and would require another adapter just for it. However, you might be missing `AdminJS.registerAdapter({...
```ts AdminJS.registerAdapter({ Resource: AdminJSMongoose.Resource, Database: AdminJSMongoose.Database, }); ``` Try placing that before `bootstrap` function or before `const app = await ...`. Adapters have to be registered before AdminJS instance is...
@devwork-g We usually do not set up AdminJS + NestJS via `@adminjs/nestjs` but use `@adminjs/express` directly in `main.ts`: ```ts await setupAdmin(app); ``` Example: ```ts const setupAdmin = async (app: INestApplication):...
Can you try this `before` hook in `edit` in the resource that's edited? ```ts import { Before } from 'adminjs'; const excludeIdPropertyFromPayload: Before = async (request, context) => { if...
This is a good start but ideally the entire filter system should be rebuilt to allow `AND`, `OR` and `NOT` plus we should use symbols for operators. This would also...
Not 100% sure, but I think you might have to import from `@adminjs/design-system/styled-components`. We have a custom export of styled components because at the time we were rewriting the codebase...
`customerId` and `surveyId` have to be defined with `@Column` decorator as regular columns. To your `@ManyToOne` relations add an additional `@JoinColumn({ name: 'surveyId' })` decorator.
@dickorydock we will update these alongside version 7 where we plan to upgrade to ES modules as well.
You use `express-session` but do you use a session store? Otherwise the session is saved in the memory and it's expected behaviour
If you place your assets in `public` dir and serve them via static middleware, you must also set `assetsCDN` in your AdminJS config: https://docs.adminjs.co/installation/migration-guide-v7#adminjs-bundler Make sure that besides `components.bundle.js` you...