Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions graphile/graphile-schema/src/build-schema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import deepmerge from 'deepmerge'
import { printSchema } from 'graphql'
import { lexicographicSortSchema, printSchema } from 'graphql'
import { ConstructivePreset, makePgService } from 'graphile-settings'
import { makeSchema } from 'graphile-build'
import { getPgPool } from 'pg-cache'
Expand Down Expand Up @@ -49,5 +49,5 @@ export async function buildSchemaSDL(opts: BuildSchemaOptions): Promise<string>
}

const { schema } = await makeSchema(preset)
return printSchema(schema)
return printSchema(lexicographicSortSchema(schema))
}
Loading
Loading