Add matchBySku method to inventoryEntries
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
And what about a more general function, like:
client.inventoryEntries.all().where('sku').in(['a', 'b', 'c', 'd']).fetch()
It would be nice, but unfortunately not possible. where doesn't return a query builder but the instance of the service. Also it can be chained multiple times and it would be really hard to build the predicate like this.
OK, thx for the info!
This should be available also for products.