public class ResourceKeyIdGraphQlRequest extends java.lang.Object implements io.sphere.sdk.client.SphereRequest<ResourceKeyIdGraphQlResult>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
keysToSearch |
protected GraphQlQueryResources |
resource |
| Constructor and Description |
|---|
ResourceKeyIdGraphQlRequest(java.util.Set<java.lang.String> keysToSearch,
GraphQlQueryResources resource)
A SphereRequest implementation to allow
SphereClient to execute graphQL queries on CTP. |
| Modifier and Type | Method and Description |
|---|---|
ResourceKeyIdGraphQlResult |
deserialize(io.sphere.sdk.http.HttpResponse httpResponse) |
io.sphere.sdk.client.HttpRequestIntent |
httpRequestIntent() |
ResourceKeyIdGraphQlRequest |
withLimit(long limit)
This method adds a limit to the request.
|
ResourceKeyIdGraphQlRequest |
withPredicate(java.lang.String predicate)
This method adds a predicate string to the request.
|
protected final java.util.Set<java.lang.String> keysToSearch
protected final GraphQlQueryResources resource
public ResourceKeyIdGraphQlRequest(@Nonnull
java.util.Set<java.lang.String> keysToSearch,
@Nonnull
GraphQlQueryResources resource)
SphereClient to execute graphQL queries on CTP. It provides a
POST request to the CTP graphql API containing body to fetch a set of ids matching given keys of a resource
defined in endpoint parameter.keysToSearch - - a set of keys to fetch matching ids for.resource - - a string representing the name of the resource endpoint.@Nonnull public ResourceKeyIdGraphQlRequest withPredicate(java.lang.String predicate)
predicate - - a string representing a query predicate.@Nonnull public ResourceKeyIdGraphQlRequest withLimit(long limit)
limit - - a number representing the query limit parameter@Nullable public ResourceKeyIdGraphQlResult deserialize(io.sphere.sdk.http.HttpResponse httpResponse)
deserialize in interface io.sphere.sdk.client.SphereRequest<ResourceKeyIdGraphQlResult>public io.sphere.sdk.client.HttpRequestIntent httpRequestIntent()
httpRequestIntent in interface io.sphere.sdk.client.SphereRequest<ResourceKeyIdGraphQlResult>