Skip to content

Commit b333b30

Browse files
IvanGoncharovleebyron
authored andcommitted
Fix spelling, "lexographicSortSchema" => "lexicographicSortSchema" (#1220)
1 parent 360fa06 commit b333b30

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export {
327327
// language AST.
328328
extendSchema,
329329
// Sort a GraphQLSchema.
330-
lexographicSortSchema,
330+
lexicographicSortSchema,
331331
// Print a GraphQLSchema to GraphQL Schema language.
332332
printSchema,
333333
// Prints the built-in introspection schema in the Schema Language

src/utilities/__tests__/lexographicSortSchema-test.js renamed to src/utilities/__tests__/lexicographicSortSchema-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import { expect } from 'chai';
1010
import dedent from '../../jsutils/dedent';
1111
import { printSchema } from '../schemaPrinter';
1212
import { buildSchema } from '../buildASTSchema';
13-
import { lexographicSortSchema } from '../lexographicSortSchema';
13+
import { lexicographicSortSchema } from '../lexicographicSortSchema';
1414

1515
function sortSDL(sdl) {
1616
const schema = buildSchema(sdl);
17-
return printSchema(lexographicSortSchema(schema));
17+
return printSchema(lexicographicSortSchema(schema));
1818
}
1919

20-
describe('lexographicSortSchema', () => {
20+
describe('lexicographicSortSchema', () => {
2121
it('sort fields', () => {
2222
const sorted = sortSDL(dedent`
2323
input Bar {

src/utilities/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export { buildASTSchema, buildSchema, getDescription } from './buildASTSchema';
5454
export { extendSchema } from './extendSchema';
5555

5656
// Sort a GraphQLSchema.
57-
export { lexographicSortSchema } from './lexographicSortSchema';
57+
export { lexicographicSortSchema } from './lexicographicSortSchema';
5858

5959
// Print a GraphQLSchema to GraphQL Schema language.
6060
export {

src/utilities/lexographicSortSchema.js renamed to src/utilities/lexicographicSortSchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { isIntrospectionType } from '../type/introspection';
3535
/**
3636
* Sort GraphQLSchema.
3737
*/
38-
export function lexographicSortSchema(schema: GraphQLSchema): GraphQLSchema {
38+
export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema {
3939
const cache = Object.create(null);
4040

4141
const sortMaybeType = maybeType => maybeType && sortNamedType(maybeType);

0 commit comments

Comments
 (0)