-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Problem with ParseQuery and DateTime #115
Comments
I'll check this out tonight. I wrote this library due to it not being available for a project, since I started I've not been able to find time to use this library. I started last night and have found a few bugs. I'll be continuing to work from the release 1.0.16 branch, hopefully will fix that shortly. |
Hello, If I can evolve in the analysis, I keep you informed. |
If you think you can do it, then go for it.
We could possibly start with one as a test?
Is it not possible to convert the string to a map using JSON encode then
use our custom encoder to convert to Parse formats?
…On Thu, Mar 14, 2019, 12:52 Rodrigo de Souza Marques < ***@***.***> wrote:
Hello,
I started an analysis and will probably have to change a lot in
ParseQuery. The query parameters must be encoded as a Map, to be correctly
encoded in the request in json format. You can use parseEncode to transform
to the correct types and send to http using queryParameters. But for this
all query possibilities, must be converted to Map and today are as string.
It will be a great job, but the library will be perfect.
If I can evolve in the analysis, I keep you informed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3tCYHM_OlfU7a1rCGNktOMiS6eMkks5vWkXwgaJpZM4brAm9>
.
|
Resolved in Pull Request #123 . Waiting for the merge |
Seem to work fine in 1.0.16 (should be pushed to Dart packages repo? Latest is .15).
|
Thanks for the update. Was that tested since the last push to 1.0.16? If so
I will update tonight
…On Mon, Mar 18, 2019, 12:05 Daniel Bjørnbakk ***@***.***> wrote:
Seem to work fine in 1.0.16 (should be pushed to Dart packages repo?
Latest is .15).
Tested on both custom date column and built in createdAt
var queryBuilder = QueryBuilder<Store>(Store());
queryBuilder.whereGreaterThan('openedAt', DateTime.now().add(Duration(days: -30)));
queryBuilder.whereGreaterThan('createdAt', DateTime.now().add(Duration(hours: -2, minutes: -40)));
queryBuilder.includeObject(['city', 'manager', 'customers']);
var response = await queryBuilder.query();
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3nZgFxzx6S2KNWRp06To3OA5ODqmks5vX4D0gaJpZM4brAm9>
.
|
@phillwiggins tested 5 minutes ago on v1.0.16 branch |
Just testing this now and it seems like, greaterThan and lessThan return the same results. I'll correct and amend. |
this is related to the function _checkForMultipleColumnInstances If it is the same field they must be grouped into a single condition. For example: where = {"runCount": {"$ gt": "1", "$ lt": "500"}, "type": "D"} This was working. It may have broken in this latest release. |
That method was always working. There was only a small change you had added in your commit which is still there. |
So this is weird. After upgrading my fork, I will redo all the tests. |
Resolved in branch v.1.0.16 |
I found a problem using ParseQuery with DateTime.
When sending the DateTime to the query it is not being coded correctly.
DateTime in Parse Server is Map
I changed the function convertValueToCorrectType to return map, but the MapEntry function returns a String with the conditions of the query
The text was updated successfully, but these errors were encountered: