Hi all,
I am using aws neptunedb for my application with java backend. Now I want to pass a dynamic variable in the query to filter the product information.
My query is below:
%%gremlin
g.V().has("product","name","Tshirt").as("A").
out("is_produced").as("B").
out("is_located").as("C").
select("A","B","C").
by(valueMap("name","price").by(unfold())).
by(valueMap("producer").by(unfold())).
by(valueMap("country","state","street).by(unfold()))
I have 1000 goods, So i want to change Tshirt with a flexible variable 'X' in my query. Can i do that with gremlin for my app.
Can someone please help me? thanks in advance!