commercetools / commercetools/sphere-node-sdk

Add matchBySku method to inventoryEntries

Open
#64 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.