public class EntityUrlQuery extends AbstractQuery<EntityUrlQuery>
_queryBuilder, ALIAS_SUFFIX_SEPARATOR, CUSTOM_FIELD_LABEL| Modifier and Type | Method and Description |
|---|---|
EntityUrlQuery |
addFragmentReference(Fragment<EntityUrlQuery> fragment)
Adds a
EntityUrlQuery fragment reference at the current position of the query. |
EntityUrlQuery |
canonicalUrl()
Deprecated.
The canonical_url field is deprecated, use relative_url instead.
|
static Fragment<EntityUrlQuery> |
createFragment(String name,
EntityUrlQueryDefinition queryDef)
Creates a GraphQL "named" fragment with the specified query type definition.
|
EntityUrlQuery |
entityUid()
The unique ID for a `ProductInterface`, `CategoryInterface`, `CmsPage`, etc.
|
EntityUrlQuery |
id()
Deprecated.
Use `entity_uid` instead.
|
EntityUrlQuery |
redirectCode()
301 or 302 HTTP code for url permanent or temporary redirect or 0 for the 200 no redirect
|
EntityUrlQuery |
relativeUrl()
The internal relative URL.
|
EntityUrlQuery |
type()
One of PRODUCT, CATEGORY, or CMS_PAGE.
|
addCustomObjectField, addCustomSimpleField, appendQuotedString, startField, startInlineFragment, withAlias@Deprecated public EntityUrlQuery canonicalUrl()
public EntityUrlQuery entityUid()
@Deprecated public EntityUrlQuery id()
public EntityUrlQuery redirectCode()
public EntityUrlQuery relativeUrl()
public EntityUrlQuery type()
public static Fragment<EntityUrlQuery> createFragment(String name, EntityUrlQueryDefinition queryDef)
name - The name of the fragment, must be unique for a given GraphQL request.queryDef - The fragment definition.public EntityUrlQuery addFragmentReference(Fragment<EntityUrlQuery> fragment)
EntityUrlQuery fragment reference at the current position of the query.
For example for a fragment named test, calling this method will add the
reference ...test in the query. For GraphQL types implementing an interface, there
will be some similar methods using the Query type of each implemented interface.fragment - The fragment to reference.Copyright © 2022 Adobe. All rights reserved.