Skip to content

Commit a860bc8

Browse files
Francesca-Bitgithub-actions[bot]
authored andcommitted
Apply docs changes
1 parent a2c0cae commit a860bc8

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

docs/api/woqlclient.md

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,31 +1388,8 @@ client.apply("mybranch","mybranch_new","merge main").then(result=>{
13881388
})
13891389
```
13901390
1391-
## docHistory
1392-
##### woqlClient.docHistory(id, [historyParams])
1393-
Get the document's history for a specific database or branch
1394-
1395-
1396-
| Param | Type | Description |
1397-
| --- | --- | --- |
1398-
| id | <code>string</code> | id of document to report history of |
1399-
| [historyParams] | <code>typedef.DocHistoryParams</code> | |
1400-
1401-
**Example**
1402-
```javascript
1403-
//this will return the last 5 commits for the Person/Anna document
1404-
client.checkout("mybranch")
1405-
client.docHistory("Person/Anna",{start:0,count:5}).then(result=>{
1406-
console.log(result)
1407-
})
1408-
//this will return the last and the first commit for the Person/Anna document
1409-
client.docHistory("Person/Anna",{updated:true,created:true}).then(result=>{
1410-
console.log(result)
1411-
})
1412-
```
1413-
1414-
## docHistory
1415-
##### woqlClient.docHistory(id, [historyParams])
1391+
## getDocumentHistory
1392+
##### woqlClient.getDocumentHistory(id, [historyParams])
14161393
Get the document's history for a specific database or branch
14171394
14181395

0 commit comments

Comments
 (0)