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!
}
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!
}
Related topics: