public class TypeHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
format(graphql.language.Type<?> type) |
static boolean |
isGraphqlId(graphql.language.Type<?> type) |
static boolean |
mapsToUuid(graphql.language.Type<?> type) |
static graphql.language.Type<?> |
toInput(graphql.language.Type<?> type,
Map<String,EntityModel> entities)
Recursively replaces every type that maps to an entity by its input type.
|
static graphql.language.Type<?> |
unwrapNonNull(graphql.language.Type<?> type)
If the type is
!T, return T, otherwise the type unchanged. |
public static boolean mapsToUuid(graphql.language.Type<?> type)
public static boolean isGraphqlId(graphql.language.Type<?> type)
public static graphql.language.Type<?> unwrapNonNull(graphql.language.Type<?> type)
!T, return T, otherwise the type unchanged.public static graphql.language.Type<?> toInput(graphql.language.Type<?> type,
Map<String,EntityModel> entities)
public static String format(graphql.language.Type<?> type)
Copyright © 2021. All rights reserved.