Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RedBeanNode Playground
node v10.24.1
version:
1.0.0
endpoint
share
tweet
Import RedBeanNode
const { R } = require("redbean-node")
Setup connection
R.setup();
Your Logic Below!
(async () => { let post = R.dispense('post'); post.text = 'Hello World'; // create or update let id = await R.store(post); console.log("Post ID: " + id); // close connection await R.close(); })();
Loading…
no comments
sign in
to comment