4 ms·
I think one can go pretty far using Parse, and it gives you a lot out of the box for your mobile clients...but it definitely has its quirks, and you have to use
by roddylindsay 11y ago
I think one can go pretty far using Parse, and it gives you a lot out of the box for your mobile clients...but it definitely has its quirks, and you have to use it in the right way.
1) Don't even bother with their hosted Cloud Code, spin up your own backend and use the webhooks. As of the JS SDK 1.5 you can finally run a node backend securely.
2) Push complex logic off the client and into Cloud Functions.
3) Put plenty lot of thought into your schemas before creating them.
That said, there are a few big areas of need that I see that I hope the team will address:
1) Development/Staging environments are a pain, particularly around schemas. Tooling around migrations would help a lot here.
2) Testing tools leave a lot to be desired (I had to roll my own backend mock library for node, https://github.com/HustleInc/parse-mockdb https://github.com/HustleInc/parse-mockdb )
3) Limited exposure of MongoDB feature set (e.g. aggregation framework)
4) Downtime (and notification speed / transparency thereof)
5) Security/ACLs leave a lot to be desired, particularly for complex schemas. For instance, it would be great to specify object-level access controls in terms of Parse queries (e.g. Users that satisfy a query built around the object in question).
- codegefluester 11y agoI'm curious about an example for (5), mind sharing one?
- roddylindsay 11y agoSure. Let's say I have a Group collection, a User collection, and a Post collection. A Post has a pointer to a Group and is public to that group. I would like to specify that each Post should be able to be read only by Users who belong to that group, by having a pointer to that Group in their "group" field. I could specify this permission at a class level as a Parse Query. Basically I want a more powerful version of this: http://blog.parse.com/learn/secure-your-app-from-the-data-browser-with-pointer-permissions/ http://blog.parse.com/learn/secure-your-app-from-the-data-br...