public class TypeHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
deepEquals(graphql.language.Type<?> type1,
graphql.language.Type<?> type2)
Tests if the two types represent the exact same GraphQL type: unlike
Node.isEqualTo(Node), this method does compare the children. |
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 deepEquals(graphql.language.Type<?> type1,
graphql.language.Type<?> type2)
Node.isEqualTo(Node), this method does compare the children.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 © 2024. All rights reserved.