mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
4
API.md
4
API.md
@@ -351,6 +351,10 @@ Returns an `Array` with a single `Object` if key exists.
|
||||
```javascript
|
||||
const profile = db.get('shamb0t')
|
||||
// [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }]
|
||||
// to get all the records
|
||||
const profile = db.get('');
|
||||
// returns all the records
|
||||
// [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }]
|
||||
```
|
||||
|
||||
#### query(mapper)
|
||||
|
||||
Reference in New Issue
Block a user