mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-08 07:06:37 +00:00
Added notice of an edge case
This commit is contained in:
parent
9b086d9ee0
commit
83bbddaef6
2
API.md
2
API.md
@ -390,6 +390,7 @@ Returns a `Promise` that resolves to the multihash of the entry as a `String`.
|
|||||||
|
|
||||||
#### get(key)
|
#### get(key)
|
||||||
Returns an `Array` with a single `Object` if key exists.
|
Returns an `Array` with a single `Object` if key exists.
|
||||||
|
If it does not exist, this returns an empty array.
|
||||||
```javascript
|
```javascript
|
||||||
const profile = db.get('shamb0t')
|
const profile = db.get('shamb0t')
|
||||||
// [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }]
|
// [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }]
|
||||||
@ -399,6 +400,7 @@ Returns an `Array` with a single `Object` if key exists.
|
|||||||
// [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }]
|
// [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### query(mapper)
|
#### query(mapper)
|
||||||
Returns an `Array` of `Objects` based on the `mapper`.
|
Returns an `Array` of `Objects` based on the `mapper`.
|
||||||
```javascript
|
```javascript
|
||||||
|
Loading…
x
Reference in New Issue
Block a user