printableName property
The name of this type with defaults for GraphQLWrapperType
.
Can be used as a name of another GraphQL type,
useful for composing names for generic types, for example.
Implementation
String get printableName {
return when(
enum_: (t) => t.name,
scalar: (t) => t.name,
object: (t) => t.name,
input: (t) => t.name,
union: (t) => t.name,
list: (t) => '${t.ofType.printableName}List',
nonNullable: (t) => '${t.ofType.printableName}Req',
);
}