Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve docstrings in SDL of federated services. #2830

Merged
merged 3 commits into from
Jun 12, 2019

Conversation

JacksonKearl
Copy link

Fixes #2808.

@JacksonKearl JacksonKearl requested a review from jbaxleyiii June 11, 2019 23:33
@@ -332,30 +332,20 @@ function printDescription(
| GraphQLEnumValue
| GraphQLUnionType,
indentation: string = '',
firstInBlock: boolean = true,
_firstInBlock: boolean = true,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this isn't really needed? Lists with descriptions seem to work out fine, as you can see from the above tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JacksonKearl yeah let's remove this

Copy link
Contributor

@jbaxleyiii jbaxleyiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JacksonKearl one small nit but otherwise wonderful!

@@ -332,30 +332,20 @@ function printDescription(
| GraphQLEnumValue
| GraphQLUnionType,
indentation: string = '',
firstInBlock: boolean = true,
_firstInBlock: boolean = true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JacksonKearl yeah let's remove this

@JacksonKearl JacksonKearl requested a review from jbaxleyiii June 12, 2019 15:57
@jbaxleyiii jbaxleyiii merged commit f3dcbb3 into master Jun 12, 2019
@jbaxleyiii jbaxleyiii deleted the jackson/preserve-federation-descriptions branch June 12, 2019 20:12
@firaskafri
Copy link

firaskafri commented May 12, 2020

@JacksonKearl Does this work for buildService using RemoteGraphQLDataSource?

abernix pushed a commit to apollographql/federation that referenced this pull request Sep 4, 2020
…l/jackson/preserve-federation-descriptions

Preserve docstrings in SDL of federated services.
Apollo-Orig-Commit-AS: apollographql/apollo-server@f3dcbb3
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gateway and/or federated schema disregard description strings
3 participants