graphql / graphql/graphql-js

Maintain comments when parsing schema

Open
#2,241 9 comments 3 reactions 1 assignee Claimed by @nveenjain View on GitHub
enhancement
Dominant language
TypeScript
Stars
20.3k
Forks
2.1k
Avg merge
44m
Merged PRs (30d)
6

Description

```graphql
type GlobalCinemaVenue implements Node @preLoad {
# @todo Refactor into a dynamic set of identifiers, i.e.
"""
https://webediamoviespro.com identifier.
"""
foreignWebediaId: String
}

```

Currently when using `parse`, the `@todo Refactor into a dynamic set of identifiers, i.e.` is not made available in AST. As a result, this data is lost when implementing utilities for formatting SDL, e.g. https://github.com/gajus/sort-graphql-sdl.

It would be nice if there was a way to parse/ print SDL while maintaining comments and descriptions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.