In the docs under Reference > Database > Dat...
# prisma-whats-new
a
In the docs under Reference > Database > Data Modelling > Model types it says: "A type has a name, an optional description and one or multiple fields." the
optional description
how is that added?
i
Either a comment or you can add a description in the Console when you create a new field
And you can also add a description to a Type
a
Alright, I just got the indication that there was some sort of syntax for adding a description.
i
Just a comment
a
Cool thanks!
i
# this is a comment in .graphql or .gql
Be aware that the parser will add every comment as a description to something. So if you add a todo comment above a specific type, for example, that todo comment will become the description
🙏 1
a
Good to know 🙂