是否有Polymer组件简化了与MongoDB的通信? [英] Is there a Polymer component that simplifies communications with MongoDB?

查看:71
本文介绍了是否有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( http://loopback.io/getting-started/)作为后端,并以Fetch( https://github.com/github/fetch ),您可以获得完整的受支持的后备解决方案.

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

这篇关于是否有Polymer组件简化了与MongoDB的通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆