public class AstValueHelper
extends java.lang.Object
Constructor and Description |
---|
AstValueHelper() |
Modifier and Type | Method and Description |
---|---|
static Value |
astFromValue(java.lang.Object value,
GraphQLType type)
Produces a GraphQL Value AST given a Java value.
|
public static Value astFromValue(java.lang.Object value, GraphQLType type)
| Value | GraphQL Value | | ------------- | -------------------- | | Object | Input Object | | Array | List | | Boolean | Boolean | | String | String / Enum Value | | Number | Int / Float | | Mixed | Enum Value |
value
- - the java value to be converted into graphql asttype
- the graphql type of the objectValue