1
我浏览了docs,github存储库,但没有为我工作。Firebase的云端函数在Algolia中为Firebase数据库对象建立索引
我的数据结构:
App {
posts : {
<post_keys> : {
auth_name : "name",
text : "some text" //and many other fields
}
}
}
1)Github repository:如果我用这个,我只是从一个函数得到一个领域,如果我需要所有的领域,我需要写为每个独立的功能,这是一个糟糕的做法。
2)Algolia Official Docs for Node.js:这不能作为云功能部署,但它做我打算做的。
我该如何编写一个可部署在Firebase上的函数,并获取在Algolia中使用其密钥索引的整个对象?
你能证明你试过了吗?还请查看https://discourse.algolia.com/t/firebase-guide-firebase-cloud-functions-examples/777 –