--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/e8428d37-d2b3-4339-8aa6-28f0361641a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Martin,You'll find that security rules are quite powerful and capable. This becomes particularly clear when you catch on to the idea that you can use the existing data in the database to write additional logic, such as role based access, etc (e.g. `get(/myCollection/otherDocument).data.field == value;`).However, if you have some advanced game logic or server-side data manipulation, then you are going to need backend code. There's no way around this. Functions is of course a great solution to managing those isolated snippets of app logic.☼, Kato
On Fri, Oct 20, 2017 at 5:57 AM, Martin Kuhn <marti...@gmx.at> wrote:
I am curious how to handle server side validation of my data when using firestore...In a traditional approach with a REST based backend I would (of course) do my validation (and maybe enhancement) before I store the data in a DB.When I use e.g. the convenient UI libs (e.g. angular fire) I don't use REST but the UI lib methods to manipulate data.Now I am aware of firestore "triggers". But I don't see something like a "beforeWrite" where you would be able to veto a data update (from my point of view this would be the most elegant way to handle this)The other approach would be to use "rules" to validate, right? But this seems that is has big limitations... (no real programm code, no possibility to enhance / manipulate data)And, of course, I could use a cloud function which is called in a REST way and do the update in a "traditional" way (but than I loose the benefits of the client lib)So what would be the way to go? How do you handle this stuff?
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/e8428d37-d2b3-4339-8aa6-28f0361641a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEZcWvTjxSyUo0v121qK7Tf605jgUY7vwxD8D4zhHakDOg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/6f836c21-6ed6-4ac3-aa6d-e75257eff804%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PERMISSION DENIED
error so it's hard to debug and do any additional data manipulation).
Most importantly, I'm not able to tell my users which specific form
fields failed validation (I'd have to also do client-side validation
everywhere, which is OK but it's a bit redundant)request.resource.data.population just to get the field (and a few times if I have to check its type, value range, etc) is not ideal really--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/597fd37b-a93d-40a9-af02-e4d8437ff4e2o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHafJBp8xBL0TndZ1r3Y5%3Dn2B_TuudAUt4yYa51C96aEtSNOjA%40mail.gmail.com.
Error compiling rules:
L57:11 Missing 'match' keyword before path.
L58:7 Unexpected 'let'.
L58:7 mismatched input 'let' expecting {'{', '/', PATH_SEGMENT}
L202:1 Unexpected '}'.To unsubscribe from this group and stop receiving emails from it, send an email to fireba...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/36206ca0-8a5d-4414-b4cb-2f4e84a9ac52o%40googlegroups.com.