public class FetchCustomObjectsGraphQlRequest extends GraphQlBaseRequestImpl<ResourceKeyIdGraphQlResult>
SphereClient to execute graphQL queries on CTP.
It provides a POST request to the CTP graphql API containing body to fetch custom object resource
with the given container name defined in endpoint parameter.limit, queryPredicate| Constructor and Description |
|---|
FetchCustomObjectsGraphQlRequest(java.lang.String container,
java.time.Instant lastModifiedAt)
Takes
container and lastModifiedAt to instantiate a new FetchCustomObjectsGraphQlRequest 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 needed in the CTP graphql API.
|
ResourceKeyIdGraphQlResult |
deserialize(io.sphere.sdk.http.HttpResponse httpResponse) |
deserializeWithResourceName, httpRequestIntent, withLimit, withPredicatepublic FetchCustomObjectsGraphQlRequest(@Nonnull
java.lang.String container,
@Nonnull
java.time.Instant lastModifiedAt)
container and lastModifiedAt to instantiate a new FetchCustomObjectsGraphQlRequest instance, which is an implementation of the SphereRequest.container - - A namespace to group custom objects.lastModifiedAt - - lastModifiedAt will be used in where param.@Nullable public ResourceKeyIdGraphQlResult deserialize(io.sphere.sdk.http.HttpResponse httpResponse)
@Nonnull protected java.lang.String buildQueryString()
GraphQlBaseRequestImplbuildQueryString in class GraphQlBaseRequestImpl<ResourceKeyIdGraphQlResult>