serverless-appsync / serverless-appsync-simulator

A simple wrapper around Amplify AppSync Simulator to test serverless AppSync Apis
MIT License
127 stars 69 forks source link

Support of enhanced subscription filtering #168

Open vinodsr opened 2 years ago

vinodsr commented 2 years ago

Can you please provide support for enhanced filtering in subscription as per https://docs.aws.amazon.com/appsync/latest/devguide/aws-appsync-real-time-enhanced-filtering.html#aws-appsync-real-time-enhanced-filtering-defining-from-client

When i tried to implement it , getting the error

Unable to convert 
$extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($util.parseJson($ctx.args.filter)))

null to class com.amazonaws.deepdish.transform.model.lambda.LambdaVersionedConfig.
bboure commented 2 years ago

Hi,

This is handled by the amplify-appsync-simulator package (dependency of this plugin).

This plugin might need upgrading to the latest version.

Could you try with the latest version of amplify-appsync-simulator and see if that fixes the problem?

bboure commented 2 years ago

according to the changelog it does not look like it's something that has been fixed

it would not hurt upgrading though.