Closed orevial closed 1 year ago
The new Dart SDK with structured response models is now available: https://dev.to/appwrite/announcing-appwrite-dart-sdk-20-50a1
Strong typed DB filters will be introduced with the release of Appwrite 0.12
@orevial Thank you for your issue. We are aware of this. As our SDKs are generated using Swagger specs using our sdk-generator, there are certain limitations at the moment. But we are working to improve typing for Map and List param as well
How is this going? I second this ticket.
@orevial @TheMaverickProgrammer Most of the issues have already been resolved in the latest version of the SDK. If you still find some params missing proper type definition (except the data
attribute in the createDocument method for now), please let us know and we will try to resolve it as soon as possible.
Thank you.
Closing this issue as it should already be resolved. If you still have the issues feel free to reopen.
π Reproduction steps
Not really a bug but I was wondering if there was a specific reason to not add strongly typing to all services parameters ?
Examples for
database
service :where
filters
list is not typed, or :where
data
, read and write are not typed either.Same goes for certain responses that simply return a
Response
or sometimes just an untypedFuture
.This makes the SDK really hard to use as we have to always refer to the documentation and hope that stuff we are looking for is defined there.
π Expected behavior
As a developer, I would expect following typing for examples above:
where
filters
list is not typed, or :π Actual Behavior
Many methods are not strongly typed as explained in introduction.
π² Appwrite version
Different version (specify in environment)
π» Operating system
MacOS
𧱠Your Environment
Tested on AppWrite 0.11.0 with following Dart packages:
(similar problems for Dart or Flutter package).
π Have you spent some time to check if this issue has been raised before?
π’ Have you read the Code of Conduct?