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

limit(X), where(X), ..., have no effects on my query... #295

Closed
fraxool opened this issue Feb 8, 2016 · 1 comment
Closed

limit(X), where(X), ..., have no effects on my query... #295

fraxool opened this issue Feb 8, 2016 · 1 comment

Comments

@fraxool
Copy link

fraxool commented Feb 8, 2016

Hello!

Since I have migrated to a self-hosted mongodb solution, everything works fine but the "limit(X)", "where(X)" functions have no effects on my queries. I mean, when I execute a query with the Parse SDK, it returns all of the results I have in my database, with no consideration for the "where" and the "limit" conditions.

For example, this query returns everything even if the "approved" parameter is set to false and without limiting the number of results...

// Fetch Videos
$fetch_videos_query = new Parse\ParseQuery("Video");
$video_results = null;

// Show only approved video on home
$fetch_videos_query->descending("createdAt");
$fetch_videos_query->includeKey("author");
$fetch_videos_query->equalTo("approved", true);
$fetch_videos_query->limit(2);

$video_results = $fetch_videos_query->find();

Do you know what is wrong in my code ?

Thanks,
Axel

EDIT : Sorry, it can be closed. I updated the Parse-server to the latest version and it now works well.

@fatuhoku
Copy link

fatuhoku commented Feb 8, 2016

@fraxool You can close this thread yourself if you like!

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

No branches or pull requests

1 participant