baopham / laravel-dynamodb

Eloquent syntax for DynamoDB
https://packagist.org/packages/baopham/dynamodb
MIT License
484 stars 128 forks source link

Combination of wherIn() and update() not working #247

Closed mcyncierto closed 2 years ago

mcyncierto commented 2 years ago

Describe the bug

Hi guys, good day! I've tried using the combination of wherIn() and update() function but it doesn't work. Am I missing something? Thanks!

Debug info

Sample code:

$query = MyModel::whereIn('id', $ids);
$query->update(['group_name' => $groupName]);

Version info

zoe-edwards commented 2 years ago

Ah, this might be a bit tricky for Dynamo to understand. May not be possible at the moment!

zoe-edwards commented 2 years ago

Sorry, whereIn is very tricky to do because of the way Dynamo indexes.