appwrite / appwrite/sdk-generator

🚀 Feature: Add Typing Support for Query

Open
#581 2 comments 109 reactions 0 assignees View on GitHub
Dominant language
Twig
Stars
325
Forks
212
Avg merge
7h 36m
Merged PRs (30d)
91

Description

### 🔖 Feature description

As a developer, I'd like to be able to have my IDE suggest/autocomplete `attribute` and check the type of `value` when creating a `Query`.

### 🎤 Pitch

Using the web SDK and TypeScript as an example, it would be cool to be able to do:

```typescript
type Todo = Models.Document & {
content: string;
isComplete: boolean;
}

Query.equal("
```

and then have my IDE suggest:

image

Then, if I pass a string into the value, it would show an error/warning because it should be a boolean.

image

image

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

- [X] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [X] I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.