SkygearIO / skygear-SDK-iOS

Skygear SDK for iOS
https://skygear.io
Other
10 stars 28 forks source link

Support using NSDictionary as named arguments for callLambda #89

Closed chpapa closed 6 years ago

chpapa commented 7 years ago

As mentioned at SkygearIO/guides#48, Javascript support both array and hashtable for positional / named arguments of Lambda function.

So for consistency, we should support NSDictionary as another callLambda with NSArray.

rickmak commented 7 years ago

NSDictionary is supported: http://cocoadocs.org/docsets/SKYKit/0.22.2/Classes/SKYLambdaOperation.html#//api/name/initWithAction:dictionaryArguments:

chpapa commented 7 years ago

@rickmak why callLambda doesn't have an nsdictionary version but have to use SKYLambdaOperation?

I guess we would still need to add callLambda with an NSDictionary version for consistency.