fix(index): Apply various fixes to the index engine (#12501)
This commit is contained in:
@@ -1180,7 +1180,9 @@ function buildSchemaFromFilterableLinks(
|
||||
return
|
||||
}
|
||||
|
||||
const fieldType = fieldRef.type.toString()
|
||||
const isEnum =
|
||||
fieldRef.type?.astNode?.kind === GraphQLUtils.Kind.ENUM_TYPE_DEFINITION
|
||||
const fieldType = isEnum ? "String" : fieldRef.type.toString()
|
||||
const isArray = fieldType.startsWith("[")
|
||||
const currentType = fieldType.replace(/\[|\]|\!/g, "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user