是否有Polymer组件简化了与MongoDB的通信?

编程入门 行业动态 更新时间:2024-10-10 10:31:49
本文介绍了是否有Polymer组件简化了与MongoDB的通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

给与诺言Polymer和Web组件在简化开发中具有我的梦想,我想知道是否有人开发了一个包装器组件来简化与MongoDB后端的对话?有人知道吗?

Given the promise Polymer and web components have in simplifying development I am wondering if anyone has developed a wrapper component that simplifies talking to a MongoDB backend? Does anyone know of one?

这是一个理智的想法吗?我想这需要一个自定义的服务器端代码,但是即使如此,我仍希望很多人写过一个代码,但我找不到任何东西.还是在这种情况下,有太多选项需要我编写自己的node/express/mongo服务器?

Is this a sane idea? I guess it would need a custom server-side piece, but even so, I expected that lots of people would have written one, but I cannot find any; or is this a case where there are so many options that I should write my own node/express/mongo server?

还是AJAX组件将完成所有繁重的工作,而我只需要使用它?

Or is it that the AJAX component will do all the heavy lifting and I just need to use that?

迷惑的安迪

推荐答案

我认为您应该使用Strongloop/Loopback( loopback.io/getting-started/)作为后端,并以Fetch( developer.mozilla/zh-CN/docs/Web/API/Fetch_API/Using_Fetch ). 不幸的是,并非所有浏览器都完全支持Fetch,但是要感谢这个polyfill( github/github/fetch ),您可以获得完整的受支持的后备解决方案.

I think that you should use Strongloop/Loopback (loopback.io/getting-started/) as backend and do ajax request thought Fetch (developer.mozilla/en-US/docs/Web/API/Fetch_API/Using_Fetch). Unfortunally Fetch isn't fully supported in all browser but thanks to this polyfill (github/github/fetch) you can have a full supported fallback solution.

更多推荐

是否有Polymer组件简化了与MongoDB的通信?

本文发布于:2023-08-02 18:11:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1280000.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:组件   通信   简化了   Polymer   MongoDB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!