-
-
Notifications
You must be signed in to change notification settings - Fork 206
Examples #13
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
Comments
Hey Cristian
The SDK is still heavily under development and does need extra
functionality to assist with most queries, although some are in place.
The main queries, I assume are the same as the ones in the example?
Anything specific you need assistance with?
*Equal to*
QueryBuilder()
..object = DietPlan()
..field = DietPlan.NAME
..equals = ['Paleo']
..query().then((response) {
if (response.success) {
print(ApplicationConstants.APP_NAME +
": " +
((response.result as List<ParseObject>)[0] as DietPlan)
.toString());
} else {
print(ApplicationConstants.APP_NAME +
": " +
response.exception.message);
}
});
…On Mon, 31 Dec 2018 at 13:44, Cristian Karmy Guzman < ***@***.***> wrote:
Any other example to see how to implement the methods equalto,
greaterThan, MainQuery, livequeries, etc?
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AHgn3pnMZxXvGpURiTzEqGEsrtvh1eazks5u-hSsgaJpZM4ZlcLg>
.
--
Kind Regards
Phill Wiggins
[email protected]
|
Thanks! But I want yo build a more complex query like: var lotsOfWins = new Parse.Query("Player"); var fewWins = new Parse.Query("Player"); var mainQuery = Parse.Query.or(lotsOfWins, fewWins); It's possible or not yet? |
I think we're quite far away at the moment. I've got a bit of spare time at
the moment and queries are my number 1 priority. Hopefully will have this
feature available shortly
…On Mon, 31 Dec 2018, 14:58 Cristian Karmy Guzman ***@***.*** wrote:
Thanks! But I want yo build a more complex query like:
ar lotsOfWins = new Parse.Query("Player");
lotsOfWins.greaterThan("wins", 150);
var fewWins = new Parse.Query("Player");
fewWins.ascending("wins");
var mainQuery = Parse.Query.or(lotsOfWins, fewWins);
mainQuery.find()
.then(function(results) {
// results contains a list of players that either have won a lot of games
or won only a few games.
})
.catch(function(error) {
// There was an error.
});
It's possible or not yet?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3rRGK63SFAQMXnQ_hf5hMn6_IvT4ks5u-iYbgaJpZM4ZlcLg>
.
|
Thanks for the collaboration! Flutter is an incredible SDK |
Hey, I think this is now possible...
DietPlan being a custom object that extends ParseObject as per the readme. The DietPlan.FAT is a column of that table, its static string that references the table name. Let me know if you have any issues. |
Any other example to see how to implement the methods equalto, greaterThan, MainQuery, livequeries, etc?
Thanks!
The text was updated successfully, but these errors were encountered: