CoolCoderSJ / HCGateway

A universal REST API for apps like Google Fit, Fitbit, Samsung Health, and more utilizing the Android Health Connect API.
https://hcgateway.shuchir.dev/
GNU General Public License v3.0
112 stars 22 forks source link

Question queries #13

Closed wardbeyens closed 1 month ago

wardbeyens commented 1 month ago

Could you provide an example on how to use the api with queries As in the documentation here

my json request should be

{
  "userid": "{{userid}}",
  "queries":[
    "search("app", ["com.sec.android.app.shealth"])"
  ]
}

But this breaks the json.

How should queries be used with the search query?

wardbeyens commented 1 month ago
{
    "userid": "{{userid}}",
    "queries": [
        "equal(\"app\", [\"com.sec.android.app.shealth\"])"
    ]
}
wardbeyens commented 1 month ago

as described in https://appwrite.io/docs/products/databases/queries