in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java/TypeUtils.kt [133:149]
override fun visitNode(
node: Node<*>,
context: TraverserContext<Node<Node<*>>>,
): TraversalControl = throw AssertionError("Unknown field type: $node")
}
return NodeTraverser().postOrder(visitor, fieldType) as JavaTypeName
}
/**
* Takes a GQL interface type name and returns the appropriate kotlin type given all of the mappings defined in the schema and config
*/
fun findJavaInterfaceName(
interfaceName: String,
packageName: String,
): JavaTypeName {
// check config
if (interfaceName in config.typeMapping) {