Skip to content

Commit

Permalink
chore(doc): add fetching relationships paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Feb 22, 2022
1 parent 2e66276 commit 23d1809
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ The code snippets below show how to use the Commerce Layer JS SDK when performin

- ### Create
- [How to create an SKU](#how-to-create-an-sku)
- ### Retrieve
- ### Retrieve / List
- [How to fetch a single SKU](#how-to-fetch-a-single-sku)
- [How to fetch a collection of SKUs](#how-to-fetch-a-collection-of-skus)
- [How to paginate a collection of SKUs](#how-to-paginate-a-collection-of-skus)
- [How to iterate through a collection of SKUs](#how-to-iterate-through-a-collection-of-skus)
- [How to build complex queries](#how-to-build-complex-queries)
<!-- - [How to build complex queries](#how-to-build-complex-queries) -->
- [How to fetch resource relationships](#how-to-fetch-resource-relationships)
- ### Update
- [How to update an existing SKU](#how-to-update-an-existing-sku)
- ### Delete
Expand All @@ -85,7 +86,7 @@ The code snippets below show how to use the Commerce Layer JS SDK when performin

Check our API reference for more information on how to [create an SKU](https://docs.commercelayer.io/api/resources/skus/create_sku).

## Retrieve
## Retrieve / List

### How to fetch a single SKU

Expand Down Expand Up @@ -193,6 +194,14 @@ To execute a function for every item of a collection, use the `map()` method:
skus.map(p => console.log('Product: ' + p.name + ' - Code: ' + p.code))
```


### How to fetch resource relationships

xxxxxxx
```
code
```

## Update

### How to update an existing SKU
Expand Down

0 comments on commit 23d1809

Please sign in to comment.