public enum GQLDirective extends Enum<GQLDirective>
| Enum Constant and Description |
|---|
include
@include(if: $var)
Include the field only if 'if' resolves to true. |
skip
@include(if: $var)
Include the field only if 'if' resolves to false. |
| Modifier and Type | Method and Description |
|---|---|
static GQLDirective |
findByName(String name)
Find directive by the name, not including the '@'.
|
static GQLDirective |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GQLDirective[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GQLDirective include
@include(if: $var)
Include the field only if 'if' resolves to true.public static final GQLDirective skip
@include(if: $var)
Include the field only if 'if' resolves to false.public static GQLDirective[] values()
for (GQLDirective c : GQLDirective.values()) System.out.println(c);
public static GQLDirective valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static GQLDirective findByName(String name)
name - The directive name.Copyright © 2015–2020 morimekta.net. All rights reserved.