Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nested object clause arrays #20

Open
will123195 opened this issue Feb 4, 2012 · 1 comment
Open

nested object clause arrays #20

will123195 opened this issue Feb 4, 2012 · 1 comment

Comments

@will123195
Copy link
Contributor

Is it possible to specify an 'order by' for the albums?

artist{
    name,
    [album]s as albums,
    where id = 10
}

For instance with a clause array like this

<?
$clause_array = [
    'albums' => ['order by' => "release_date asc"]
];
@stanistan
Copy link
Contributor

Right now the order by for sub objects is the order by defined in the respective aql statement.

album {
    artist_id,
    name
    order by release_date asc
}

A nested clause array would only apply to nested AQL, this shouldn't be too difficult to add.

@ghost ghost assigned stanistan Mar 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants