Skip to content

Commit

Permalink
Remove explicit empty description on the _entities type.
Browse files Browse the repository at this point in the history
As of graphql/graphql-js#2177 in `graphql@15`, empty
descriptions are still included in the SDL output.  In order to be excluded
entirely, they must be absent (or `null`).

Ref: graphql/graphql-js#2177
  • Loading branch information
abernix committed Jan 3, 2020
1 parent 7e5cffe commit b1139b2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/apollo-federation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export const entitiesField: GraphQLFieldConfig<any, any> = {
type: new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(AnyType))),
},
},
description: '',
resolve(_source, { representations }, context, info) {
return representations.map((reference: { __typename: string } & object) => {
const { __typename } = reference;
Expand Down

0 comments on commit b1139b2

Please sign in to comment.