Skip to content

Commit 3dc0535

Browse files
committed
docs: add target
1 parent 28a9288 commit 3dc0535

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ client
109109
#### Get all content ids
110110

111111
This function can be used to retrieve all content IDs only.
112-
Since `filters` and `draftKey` can also be specified, it is possible to retrieve only the content IDs for a specific category, or to include content from a specific draft.
112+
Since `filters` and `draftKey` can also be specified, it is possible to retrieve only the content IDs for a specific category, or to include content from a specific draft. \
113+
The `target` property can also be used to address cases where the value of a field other than content ID is used in a URL, etc.
113114

114115
```javascript
115116
client
@@ -136,6 +137,16 @@ client
136137
})
137138
.then((res) => console.log(res))
138139
.catch((err) => console.error(err));
140+
141+
// Get all content ids with target
142+
client
143+
.getAllContentIds({
144+
endpoint: 'endpoint',
145+
target: 'url',
146+
})
147+
.then((res) => console.log(res))
148+
.catch((err) => console.error(err));
149+
```
139150
```
140151
141152
#### CREATE API

0 commit comments

Comments
 (0)