public abstract class AbstractQuery<T extends AbstractQuery> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
_queryBuilder |
static String |
ALIAS_SUFFIX_SEPARATOR |
static String |
CUSTOM_FIELD_LABEL |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractQuery(StringBuilder queryBuilder) |
| Modifier and Type | Method and Description |
|---|---|
T |
addCustomObjectField(String fieldName,
CustomFieldQueryDefinition queryDef)
Adds a custom object field to the GraphQL query.
|
T |
addCustomSimpleField(String fieldName)
Adds a custom simple field to the GraphQL query.
|
static void |
appendQuotedString(StringBuilder query,
String string) |
protected void |
startField(String fieldName) |
protected void |
startInlineFragment(String typeName) |
T |
withAlias(String aliasSuffix) |
public static final String ALIAS_SUFFIX_SEPARATOR
public static final String CUSTOM_FIELD_LABEL
protected final StringBuilder _queryBuilder
protected AbstractQuery(StringBuilder queryBuilder)
public static void appendQuotedString(StringBuilder query, String string)
protected void startInlineFragment(String typeName)
protected void startField(String fieldName)
public T addCustomSimpleField(String fieldName)
fieldName - The name of the field that will be added to the GraphQL request.public T addCustomObjectField(String fieldName, CustomFieldQueryDefinition queryDef)
fieldName - The name of the field that will be added to the GraphQL request.queryDef - The definition of the requested sub-fields of the object.Copyright © 2022 Adobe. All rights reserved.