I have a AQL query that looks like this
items.find(
{
"path":{"$match":"product/*"},
"size":{"$gt" : "10000"},
"type":{"$eq" : "file"}
}
)
and my java HttpClient looks like this
String url = "http://restEndpoint/";
HttpClient client = HttpClientBuilder.create().build();
HttpPost request = new HttpPost(url);
request.addHeader("User-Agent", USER_AGENT);
request.addHeader("Content-Type", "text/plain");
/*how do I insert the data here*/
request.setEntity();
HttpResponse response = client.execute(request);
I'm wondering how do I insert the query in request.setEntity as it only accepts HttpEntity