Repository navigation
Parameters Support for List And Map - #196
anandsubbu007 wants to merge 5 commits into
Conversation
|
Client Side Server Side Code |
|
Before I review this pull request I just wanted to check some general things. Does it support Maps with any of the Serverpod primitive types (int, bool, double, DateTime, ByteData) both as keys and values? Does it support Serializable as key and value? Are there tests for all of the types? Currently the tests are failing for the PR. It's possible to run the tests locally before doing a PR by doing |
ordru
left a comment
There was a problem hiding this comment.
- If I am not mistaken, the destination branch should be
devinstead ofmain?
|
It Supports I didn't test it with byteData & other key types value in Map |
Can't able to run Test in my mac |
|
All test passed in my device.
|
|
I'm closing this as it doesn't support e.g. Map<DateTime, String?> or Map<int, dynamic>. I'm planning a bit of another approach to support these and also any of the supported types as parameters. In future, make sure to also send requests to the dev branch. |
Now we can able to pass List of String, double, int, DateTime, model (that generated), bool as parameter in endpoint
Map<String, dynamic> parameter can also be passed as an argument.
with return of list