Files
klz-cables.com/.pnpm-store/v10/files/55/139347ac6d4a4df91f1260a3390e829f364c46c9ea70b04b359b007fb59031a0b2d8027e27cc33d1836f398a359f6ecde073c17ab3cab1624dbd57f484695a
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

28 lines
715 B
Plaintext

'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports.typeFromAST = typeFromAST;
var _kinds = require('../language/kinds.js');
var _definition = require('../type/definition.js');
function typeFromAST(schema, typeNode) {
switch (typeNode.kind) {
case _kinds.Kind.LIST_TYPE: {
const innerType = typeFromAST(schema, typeNode.type);
return innerType && new _definition.GraphQLList(innerType);
}
case _kinds.Kind.NON_NULL_TYPE: {
const innerType = typeFromAST(schema, typeNode.type);
return innerType && new _definition.GraphQLNonNull(innerType);
}
case _kinds.Kind.NAMED_TYPE:
return schema.getType(typeNode.name.value);
}
}