With prisma.io (graphQl), we have:

* File: `datamodel.graphql`

```
"""I am a great User"""
type User {
  id: ID! @unique
  email: String! @unique
}

```

after doing `prisma deploy`, it generates a file without the comment from the file `datamodel.graphql`

* File `generated-schema.graphql`

```
type User implements Node {
  id: ID!
  email: String!
}

```

* In the prisma `playground`, I do not have the comment.
[![enter image description here](https://i.stack.imgur.com/WRSbb.png)](https://i.stack.imgur.com/WRSbb.png)

**How can we add a comment for a Type in order to generate a documentation in playground?**

Workaround:

If I cheat and add a comment in the `generated-schema.graphql` (this file will be overridden after the next `prisma deploy`)

`"""I am a great User"""
type User implements Node {
 id: ID!
 email: String!
}`

we have: 
[![enter image description here](https://i.stack.imgur.com/A5LT4.png)](https://i.stack.imgur.com/A5LT4.png)

Related topics:

* <https://github.com/prisma/graphql-playground/issues/819>
* <https://www.prisma.io/forum/t/getting-prisma-comments-descriptions-to-appear-in-graphql-playground-schema/2980>
* <https://github.com/prisma/prisma/issues/2152>