Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] how to option nested schema _id:false? #26

Closed
zinzinday opened this issue Dec 25, 2018 · 2 comments
Closed

[QA] how to option nested schema _id:false? #26

zinzinday opened this issue Dec 25, 2018 · 2 comments

Comments

@zinzinday
Copy link

ex:

export const NestedSchema = new Schema({
  _id: false, //  error TS2322: Type 'false' is not assignable to type 'Schema | SchemaTypeOpts<any> | SchemaType'.
  first: String,
  last: String
});

export const NestedSchema = new Schema({
  name: NestedSchema
});
@kamilmysliwiec
Copy link
Member

kamilmysliwiec commented Feb 1, 2019

This issue/question should be added in the official mongoose repository.

@lucasmonstrox

This comment has been minimized.

@nestjs nestjs locked as spam and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants