# Datastore available in sync mode

**URL:** https://community.silverbullet.md/t/datastore-available-in-sync-mode/1322
**Category:** Plug Development
**Created:** [December 2, 2024, 5:19pm UTC](https://community.silverbullet.md/t/datastore-available-in-sync-mode/1322 "2024-12-02T17:19:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jhanos](https://community.silverbullet.md/user_avatar/community.silverbullet.md/jhanos/32/744_2.png) [@jhanos](https://community.silverbullet.md/u/jhanos)
#### Post date: [December 2, 2024, 5:19pm UTC](https://community.silverbullet.md/t/datastore-available-in-sync-mode/1322/1 "2024-12-02T17:19:15Z")

</div>

Hello,

I try to finish my plugin development, everything run correctly in online mode, but in “sync mode” i am unable to request the datastore

For example with:

```js
var info = await datastore.get('data');
console.log(info)

```

I received an error about “e.join is not a function”.

Is datastore available on sync mode?

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [December 7, 2024, 7:50am UTC](https://community.silverbullet.md/t/datastore-available-in-sync-mode/1322/2 "2024-12-07T07:50:17Z")

</div>

Err. This shouldn’t work in online mode either. Keys for the data store are arrays not strings: `datastore.get(["key"])`

---

<div class="post-metadata">

### Author: ![jhanos](https://community.silverbullet.md/user_avatar/community.silverbullet.md/jhanos/32/744_2.png) [@jhanos](https://community.silverbullet.md/u/jhanos)
#### Post date: [December 17, 2024, 7:59am UTC](https://community.silverbullet.md/t/datastore-available-in-sync-mode/1322/3 "2024-12-17T07:59:59Z")

</div>

many thanks with your answer i was able to fix my plugin in sync mode.
