Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How to store API in rethinkdb which is coming from ad server and widget. How can I store those in rethinkdb?
如果您使用的是 JavaScript,则只需将 JavaScript 对象插入 RethinkDB。只需确保将您的 API 响应转换为 JS 对象即可。
var obj = { type: 'type', property: 'property' }; r.table("api") .insert(obj) .run(conn, callback)
查看insert.
insert
请记住,您不能直接从浏览器与 RethinkDB 交互。