amazon-archives / amazon-cognito-js

Amazon Cognito Sync Manager for JavaScript
http://aws.amazon.com/cognito
Apache License 2.0
202 stars 83 forks source link

Record removals are not synchronized #44

Open adambiggs opened 7 years ago

adambiggs commented 7 years ago

I'm using Cognito Events to trigger a Lambda function which validates and removes invalid records in the dataset (as described here).

When the Lambda function removes a record from the data store, the sychronize() response from the Cognito server looks correct - the record isn't returned... But the record is never removed from the local dataset.

How am I supposed to synchronize record removals?

adambiggs commented 7 years ago

Nervermind, I think this was user error.

adambiggs commented 7 years ago

Reopening this issue. I don't think this was user error after all.

When my Lambda function removes a record from the server dataset, the record remains in the local client-side dataset, but it's value is set to an empty string.

I would expect the record to be completely removed when I perform a sync.