commercetools / commercetools/sphere-node-sdk
Add matchBySku method to inventoryEntries
Open
Type: Enhancement
- Dominant language
- CoffeeScript
- Stars
- 16
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
`client.inventoryEntries.all().matchBySku(['a', 'b', 'c', 'd']).fetch()`
The function is an helper to build a query predicate using `in` operator
`predicate = 'sku in ("a", "b", "c", "d")'`
See https://github.com/sphereio/sphere-stock-import/blob/master/src/coffee/stockimport.coffee#L223-L227
Contributor guide
Assessment
This issue has not been assessed yet.