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

Add quickfix for Error validating field 'id' in model 'Post': MongoDB '@default(auto())' fields must have 'ObjectId' native type. #1548

Closed
janpio opened this issue Sep 29, 2023 · 2 comments · Fixed by prisma/prisma-engines#4629
Assignees
Milestone

Comments

@janpio
Copy link
Member

janpio commented Sep 29, 2023

image
@Jolg42
Copy link
Member

Jolg42 commented Nov 3, 2023

@janpio What's the issue here? Did you try clicking the "Quick Fix" link in that popup?

@janpio
Copy link
Member Author

janpio commented Nov 3, 2023

There is no quickfix provided by the extension:
image

@janpio janpio added the kind/feature A request for a new feature. label Nov 3, 2023
@Jolg42 Jolg42 changed the title Quickfix for Error validating field 'id' in model 'Post': MongoDB '@default(auto())' fields must have 'ObjectId' native type. Add quickfix for Error validating field 'id' in model 'Post': MongoDB '@default(auto())' fields must have 'ObjectId' native type. Nov 3, 2023
Druue added a commit to prisma/prisma-engines that referenced this issue Jan 4, 2024
- quickfix for mongodb native type with `@default(auto)`

closes prisma/language-tools#1548
@Druue Druue self-assigned this Jan 4, 2024
@Jolg42 Jolg42 added this to the 5.8.0 milestone Jan 8, 2024
Druue added a commit to prisma/prisma-engines that referenced this issue Jan 8, 2024
* Added quickfix for mongodb native type with `@default(auto)`

closes prisma/language-tools#1548
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants