Class ResourceKeyIdGraphQlRequest

    • Field Detail

      • keysToSearch

        protected final java.util.Set<java.lang.String> keysToSearch
    • Constructor Detail

      • ResourceKeyIdGraphQlRequest

        public ResourceKeyIdGraphQlRequest​(@Nonnull
                                           java.util.Set<java.lang.String> keysToSearch,
                                           @Nonnull
                                           GraphQlQueryResources resource)
        Takes keysToSearch and query resource name GraphQlQueryResources to instantiate a new ResourceKeyIdGraphQlRequest instance, which is an implementation of the SphereRequest.
        Parameters:
        keysToSearch - - a set of keys to fetch matching ids for.
        resource - - a string representing the name of the resource endpoint.
    • Method Detail

      • buildQueryString

        @Nonnull
        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
        Specified by:
        buildQueryString in class GraphQlBaseRequestImpl<ResourceKeyIdGraphQlResult>
        Returns:
        a string representing a graphql query