Skip to content

[Re-Introspection] Comments in the schema are removed by re-introspection #3052

@divyenduz

Description

@divyenduz

Problem

User-defined comments in a schema are removed with re-introspection.

model user {
  id Int @id
  name String
  type user_type
}

/// Default for a user is NORMAL
enum user_type {
  ADMIN
  NORMAL
}

On re-introspection, the comment above the enum is removed

Suggested solution

The comments should persist after re-introspection

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions