skip to Main Content

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

npm ERR! notsup Unsupported engine for @nestjsi/[email protected]: wanted: {"node":">=16.0.0"} (current: {"node":"14.19.3","npm":"6.14.17"}) – Docker

When building a Dockerfile I get: npm ERR! notsup Required: {"node":">=16.0.0"} npm ERR! notsup Actual: {"npm":"6.14.17","node":"14.19.3"} Dockerfile: FROM abc.xyz.com/abc-xyxa/ab/nodejs:14 As Development USER root # set the root's npm configuration to our project's configuration COPY .npmrc /root/.npmrc # copy project file…

VIEW QUESTION
Back To Top
Search