You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I apply this query, it returns no error. But I can't limit by date:
for (var element in list) {
final QueryBuilder<ParseObject> queryTemp =
QueryBuilder<ParseObject>(ParseObject(EventEntity.className));
//No search by date
queryTemp.whereEqualTo(
EventEntity.attendances,
(ParseObject(AttendanceEntity.className)..objectId = element.id)
.toPointer());
listQueries.add(queryTemp);
}
QueryBuilder<ParseObject> eventsOr = QueryBuilder.or(
ParseObject(EventEntity.className),
listQueries,
);
When I apply the same query including the date limits as follows:
for (var element in list) {
final QueryBuilder<ParseObject> queryTemp =
QueryBuilder<ParseObject>(ParseObject(EventEntity.className));
//+++ search by date
final start = DateTime(2023, 06, 25);
final end = DateTime(2023, 06, 27);
queryTemp.whereGreaterThanOrEqualsTo(
EventEntity.day, DateTime(start.year, start.month, start.day));
queryTemp.whereLessThanOrEqualTo(
EventEntity.day, DateTime(end.year, end.month, end.day, 23, 59));
//--- search by date
queryTemp.whereEqualTo(
EventEntity.attendances,
(ParseObject(AttendanceEntity.className)..objectId = element.id)
.toPointer());
listQueries.add(queryTemp);
}
QueryBuilder<ParseObject> eventsOr = QueryBuilder.or(
ParseObject(EventEntity.className),
listQueries,
);
I return this error:
╭-- Parse Response
Class: Event
Function: ParseApiRQ.query
Status Code: -1
Type: Other Cause
Exception: FormatException: Unexpected character (at character 1)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www....
^
╰--
Steps to reproduce
Actual Outcome
Expected Outcome
Environment
Parse Flutter SDK
SDK version: 5.1.0
Flutter version: 3.10.5
Dart version: 3.0.5
Operating system version: POP
Server
Parse Server version: 4.10.4
Logs
The text was updated successfully, but these errors were encountered:
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
New Issue Checklist
Issue Description
can you help me ?
When I apply this query, it returns no error. But I can't limit by date:
When I apply the same query including the date limits as follows:
I return this error:
Steps to reproduce
Actual Outcome
Expected Outcome
Environment
Parse Flutter SDK
5.1.0
3.10.5
3.0.5
POP
Server
4.10.4
Logs
The text was updated successfully, but these errors were encountered: