Skip to content

Commit 0bcef09

Browse files
Improve description for lexicographicSortSchema (#2412)
Replicates graphql-python/graphql-core@c61c65d
1 parent 057510b commit 0bcef09

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/utilities/lexicographicSortSchema.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ import { GraphQLSchema } from '../type/schema';
22

33
/**
44
* Sort GraphQLSchema.
5+
*
6+
* This function returns a sorted copy of the given GraphQLSchema.
57
*/
68
export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema;

src/utilities/lexicographicSortSchema.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import {
3131

3232
/**
3333
* Sort GraphQLSchema.
34+
*
35+
* This function returns a sorted copy of the given GraphQLSchema.
3436
*/
3537
export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema {
3638
const schemaConfig = schema.toConfig();

0 commit comments

Comments
 (0)