Short answer: you don't. Long answer: From a security perspective its not a good idea at all to directly send database queries to your backend. A possible attacker will be able to send his own requests - see https://xkcd.com/327/ for more details. Foxx is whats made therefore. You send your query criterias to your foxx service, which does propper input validation and then does the query for you in term. you use https://docs.arangodb.com/3.1/Manual/Foxx/Router/ to move browsers from simple to reach locations into your service.
On Thursday, June 1, 2017 at 9:08:29 PM UTC+2, Arangogo wrote: > > > Now keeping all DB files in drive C without Foxx > > How to load collection Objects from ArangoDB _System database *in the > main html file* to be able to run simple queries *directly* onto the > browser ? > > > As an example written in pseudo code : > > <script> > > *CONNECT TO ArangoDB* > > *LOAD _System* > > > > *FOR O in ObjectsRETURN O* > > </script> > > How can we make this script to work ? > > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
