I\'m creating API using Nestjs and Mongodb. tasks.service.ts, tried to create a getAll endpoint and got typescript error: Type \'Task\' does not satisfy the constraint \'D
Type \'Task\' does not satisfy the constraint \'D