Skip to content

Commit

Permalink
Improve description for lexicographicSortSchema (#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Jan 29, 2020
1 parent 057510b commit 0bcef09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utilities/lexicographicSortSchema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import { GraphQLSchema } from '../type/schema';

/**
* Sort GraphQLSchema.
*
* This function returns a sorted copy of the given GraphQLSchema.
*/
export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema;
2 changes: 2 additions & 0 deletions src/utilities/lexicographicSortSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import {

/**
* Sort GraphQLSchema.
*
* This function returns a sorted copy of the given GraphQLSchema.
*/
export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema {
const schemaConfig = schema.toConfig();
Expand Down

0 comments on commit 0bcef09

Please sign in to comment.