orbitdb / field-manual

The Offical User's Guide to OrbitDB
207 stars 43 forks source link

[01_Tutorial/02_Managing_Data.md]: using await in node REPL #145

Open kvutien opened 3 years ago

kvutien commented 3 years ago

I'm doing 01_Tutorial/02_Managing_Data.md. I forked the repo and I'm modifying the text based on my own working notes.

Question: I found that in order to use await in the nodeJS REPL, I need to launch node with the argument --experimental-repl-await. Could you confirm that indeed it makes sense to add this detail in the tutorial?

I also found an execution error in the REPL command const content = await NPP.node.dag.get(cid) but I'll file a distinct issue

aphelionz commented 3 years ago

Yes, it would be great to include that :+1:

kvutien commented 3 years ago

OK. I'll pushed the change in the 01_Basics.md when calling node. I'm not adding any explanation yet at this stage, to lessen the cognitive load on the beginner. The explanation will be given in due time in 02_Managing_Data.md

As soon as my PR of 01_Basics is merged, I'll close this issue.

I'll also repeat it in the other chapters every time we call node.