We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9da41f commit ab356eeCopy full SHA for ab356ee
src/introspection/introspection.ts
@@ -22,7 +22,7 @@ import {
22
SimplifiedType,
23
SimplifiedInputField,
24
SimplifiedField,
25
-} from "./types.js";
+} from "../types.js";
26
import { typeNameToId } from "./utils.js";
27
28
function unwrapType(type) {
@@ -215,5 +215,8 @@ export function getSchema(schema: GraphQLSchema) {
215
const simpleSchema = simplifySchema(schema);
216
assignTypesAndIDs(simpleSchema);
217
addParent(simpleSchema);
218
- return simpleSchema;
+
219
+ // Force cast to the correct type
220
+ // FIXME: This is not the right way of doing it
221
+ return simpleSchema as any as SimplifiedIntrospectionWithIds;
222
}
src/introspection/types.ts
0 commit comments