You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graphql-kotlin-toolkit-codegen/src/main/kotlin/com/auritylab/graphql/kotlin/toolkit/codegen/mapper/KotlinTypeMapper.kt
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,14 @@ internal class KotlinTypeMapper(
37
37
privatevalgeneratedMapper:GeneratedMapper
38
38
) {
39
39
/**
40
-
* Will try to find a corresponding [TypeName] for the given [type].
41
-
* The returned types already assume the incoming data has been parsed.
40
+
* Will resolve the [TypeName] for the given [GraphQLType]. The returned types already assume the incoming data
41
+
* has been parsed into internal types. You can additionally supply a [fieldDirectiveContainer] which can be for
42
+
* example the [graphql.schema.GraphQLFieldDefinition]. A custom [listType] can also be supplied if needed.
43
+
*
44
+
* @param type The type for which to create the [TypeName] for.
45
+
* @param fieldDirectiveContainer The directive container for additional specification of the type.
46
+
* @param listType A custom type for lists.
47
+
* @return The resolved [TypeName] for the given [type].
0 commit comments