public class ResourceKeyIdGraphQlRequest extends GraphQlBaseRequestImpl<ResourceKeyIdGraphQlResult>
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.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
keysToSearch |
protected GraphQlQueryResources |
resource |
limit, queryPredicate| Constructor and Description |
|---|
ResourceKeyIdGraphQlRequest(java.util.Set<java.lang.String> keysToSearch,
GraphQlQueryResources resource)
Takes
keysToSearch and query resource name GraphQlQueryResources to instantiate
a new ResourceKeyIdGraphQlRequest instance, which is an implementation of the SphereRequest. |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildQueryString()
This method builds a string matching the required format to query a set of ids matching given
keys of a resource using the CTP graphql API
|
ResourceKeyIdGraphQlResult |
deserialize(io.sphere.sdk.http.HttpResponse httpResponse) |
deserializeWithResourceName, httpRequestIntent, withLimit, withPredicateprotected 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)
keysToSearch and query resource name GraphQlQueryResources to instantiate
a new ResourceKeyIdGraphQlRequest instance, which is an implementation of the SphereRequest.keysToSearch - - a set of keys to fetch matching ids for.resource - - a string representing the name of the resource endpoint.@Nullable public ResourceKeyIdGraphQlResult deserialize(io.sphere.sdk.http.HttpResponse httpResponse)
@Nonnull protected java.lang.String buildQueryString()
buildQueryString in class GraphQlBaseRequestImpl<ResourceKeyIdGraphQlResult>