You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
53: Add support to Encodable types for addDocuments function r=curquiza a=ppamorim
## Summary
- Function `addDocuments<T>` added. Now it's possible to send objects that are `Codable/Encodable` and the SDK will automatically encode the values to JSON. A custom encoder can be set by adding `encoder` in the call.
## Additions
- Fixed bug in the `ClientTests.swift` file
## Local tests
- [X] Unit tests passed
- [X] Integration tests passed
## Problems
Users are forced to wrap the object to `[]` when using `addDocuments` function with objects that are `Codable/Encodable`. I tried to create a wrapper function for this but Swift doesn't like the direct conversion from `T` to `[T]`.
Co-authored-by: Pedro Paulo de Amorim <[email protected]>
0 commit comments