skip to Main Content

Postgresql – Can't run Typeorm migrations in nestjs

I was following this blog https://wanago.io/2022/07/25/api-nestjs-database-migrations-typeorm/ to setup migrations in my nestjs project but got the error that dataSourceFileExport i.e DataSource object exported from the migration.config.ts is not iterable. And I don't know why it's not iterable. I couldn't find…

VIEW QUESTION

Nest.js MongoDb always return results

So the find method always returns results even when there are no results that match the search query. What could be the reason? Schema: export const ReviewScehma = new mongoose.Schema({ reviewId: { type: String, default: '' }, authorName: { type:…

VIEW QUESTION

In Nest js, I added Redis as a cache manager. And can't find any added data in Redis after calling the set function. So, am I missing something?

Node version: v14.15.4 Nest-js version: 9.0.0 app.module.ts Here is the code. In the app module, I am registering Redis as a cache manager. @Module({ imports: [ CacheModule.register({ isGlobal: true, store: redisStore, url: process.env.REDIS_URL, }) ], controllers: [AppController], providers: [AppService], })…

VIEW QUESTION
Back To Top
Search