1

我有这个 JSON。如何在 java 中将其执行到 commercetools?

String myJson = "{  
   "query Sphere":{  
      "products":{  
         "results":{  
            "masterData":{  
               "current":{  
                  "names":"locale(\"en\")"
               }
            }
         }
      }
   }
}";
4

1 回答 1

2

commercetools JVM SDK 的 Javadoc 中,您可以找到指向graphQL 示例的链接。

SphereRequest使用结果类型作为类型参数来实现 a,并在方法中httpRequestIntent使用 graphQL 字符串作为主体。

于 2019-08-08T11:54:19.360 回答