Skip to content

🐛 Bug Report: Query.between isn't parsed in the right format #6006

@gepd

Description

@gepd

👟 Reproduction steps

  1. create a query using between for example
const query = [Query.between("date", "2023-08-15T04:00:13.989Z", "2023-08-16T04:00:13.989Z")];
  1. You'll see the output: [between("date", ["2023-08-15T04:00:13.989Z","2023-08-15T07:00:21.100Z"])]

Looking the SDK generator repo, it looks like it's the same for all SDK's https://github.com/appwrite/sdk-generator/blob/master/templates/node/lib/query.js.twig#L27

👍 Expected behavior

It should be: [between("date", "2023-08-15T04:00:13.989Z","2023-08-15T07:00:21.100Z")]

As workaround it's possible to manually write the query and you can work with it

👎 Actual Behavior

The output is: [between("date", ["2023-08-15T04:00:13.989Z","2023-08-15T07:00:21.100Z"])]

🎲 Appwrite version

Version 1.3.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingproduct / databasesFixes and upgrades for the Appwrite Database.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions