Skip to content

Conversation

@LauraWitulskiMorales
Copy link
Contributor

This PR fixes an issue where users were unable to open older reports containing comments that were created before the introduction of the Comment.published field.

A resilient Type Resolver has been implemented for the Comment type.

The logic return comment.published || false intercepts missing (undefined) values from the database and returns the safe default value of false. This should satisfy the schema requirement, preventing the server from crashing the query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants