Ask Your Question
1

What is the meaning of the error message "Object literal may only specify known properties, and 'comments' does not exist in type" when starting up Prisma MongoDB from the beginning?

asked 2023-06-14 23:01:02 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-14 23:06:02 +0000

pufferfish gravatar image

This error message is related to TypeScript and it indicates that there is a property named "comments" that is not defined in the Prisma MongoDB data model. In other words, there is no field named "comments" in the database schema or Prisma schema. This error message suggests that you need to update the schema file to include the "comments" property or remove the reference to it if it's unintentional.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-14 23:01:02 +0000

Seen: 10 times

Last updated: Jun 14 '23