Closed MickL closed 3 years ago
Please provide a minimum reproduction repository.
My mistake, works as expected
My mistake, works as expected
where was the mistake bro? I'm facing the issue
My mistake, works as expected
where was the mistake bro? I'm facing the issue
Same here.. What is the mistake????
My mistake, works as expected
where was the mistake bro? I'm facing the issue
Same here.. What is the mistake????
set useCreateIndex: true, autoIndex: true,
like this
MongooseModule.forRoot(process.env.DATABASE_URL, {
useCreateIndex: true,
autoIndex: true,
})
My mistake, works as expected
where was the mistake bro? I'm facing the issue
Same here.. What is the mistake????
set useCreateIndex: true, autoIndex: true,
like this
MongooseModule.forRoot(process.env.DATABASE_URL, { useCreateIndex: true, autoIndex: true, })
I was sure I tried that and didn't work. It worked now. Awesome thank you
Bug Report
Current behavior
Setting the prop
unique: true
has no effect iftype
is not set.I am not sure if this is intentional, but I do not see that documented so if it is intentional it should be documented why it is.
Input Code
In the following schema the unique is not working:
The following IS working:
Expected behavior
unique
may work withouttype
asrequired
does OR it should be documented.Environment
Nest version: 7.5.1