Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Support to AQL functions involving subquerys #1

Open
tarsislima opened this issue Oct 1, 2014 · 0 comments
Open

Support to AQL functions involving subquerys #1

tarsislima opened this issue Oct 1, 2014 · 0 comments

Comments

@tarsislima
Copy link
Owner

There is currently no support for subqueries inside functions because second parameter of LET method expect AqlGen Object to wrap the subquery with parentheses
as for example:

// expected 
// FOR l IN locations
//   LET users = FIRST( (FOR u IN users) )

 $mainQuery = AqlGen::query('l', 'locations');  
 $users = AqlGen::query('u', 'users');

// next  produces    
//LET users = (FOR u IN users) 
$mainQuery->let('users', $users);

//but for functions only work with string 
$mainQuery->let('users', 'FIRST((' .  $users->get() .'))');

Some sugestions of implementations?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant