Hi guys,
Is there a way to generate types on client side. Collection types and etc?
Take a look at Wess's am package
I was thinking more auto generated like what supabase has: https://supabase.com/docs/guides/api/rest/generating-types
No auto generated at the time, until now, I have manually generating it
I often use https://quicktype.io/ to generate stuff like this
Thanks guys. Was hoping for more automated way to generate it. Maybe something like: https://github.com/YsarocK/fetch-appwrite-types Couldn't make it work tho.
We plan to add something once we find time. We have a lot of languages to add support for though 😬
Oh, I thought AppWrite had great TS support :/
Have you used this?
Yes, you just do supabase gen types typescript --project-id $PROJECT_ID > lib/database.types.ts then it will put all the database types to the destination file.
pretty convenient
Hmm not sure why I was having problems when I tried it out a while ago
Saw something post about supabase free tier being down? Not sure if that is the case
Oh no. It was a while ago, not today
Oh I see, not sure 😄
Recommended threads
- Substring lookup for array elements
Hello, Is substring look up possible for array of strings? ```js Query.contains('product_names', [chair]), ``` this only works if I have the exact item name. `...
- Weird CLI error
I'm a little lost ``` appwrite init project --organization-id my_actual_organiztion_id --project-name "test" --project-id "unique_id" ℹ Info: For detailed erro...
- Appwrite docs mcp server 502 bad gateway
I added the appwrite docs mcp server to vscode following the docs https://appwrite.io/docs/tooling/mcp/vscode#step-1 but upon start it gives the following error...