h***@usc.edu
2018-07-24 17:43:44 UTC
Hello,
I am new to Arango and exploring the graph queries and how to use the REST
APIs
The query can be executed using the REST API in the following way:
curl -X POST --data @- --dump - --basic --user "root"
http://localhost:8529/_db/licensedb/_api/cursor <<EOF
{
"query" : "FOR p IN products LET a = p.id FILTER a == 4 LET name = p.name
SORT p.id LIMIT 1 RETURN name"
}
EOF
However, I don't want to write the whole query in these curl statements. It
exposes the actual structure of the Graph Database that is created and does
not look very secure.
Is it possible to store the actual query on the server and execute it using
the name of the query or some ID associated to it.
Is there any other way of doing this without exposing the actual query in
the REST commands.
Thanks,
I am new to Arango and exploring the graph queries and how to use the REST
APIs
The query can be executed using the REST API in the following way:
curl -X POST --data @- --dump - --basic --user "root"
http://localhost:8529/_db/licensedb/_api/cursor <<EOF
{
"query" : "FOR p IN products LET a = p.id FILTER a == 4 LET name = p.name
SORT p.id LIMIT 1 RETURN name"
}
EOF
However, I don't want to write the whole query in these curl statements. It
exposes the actual structure of the Graph Database that is created and does
not look very secure.
Is it possible to store the actual query on the server and execute it using
the name of the query or some ID associated to it.
Is there any other way of doing this without exposing the actual query in
the REST commands.
Thanks,
--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.