Justin Magaram

Results 23 comments of Justin Magaram

I don't understand the underlying rules language. But I was able to get it to upload without errors as follows... I changed `resource==null ? null : resource.data` to simply `resource.data`....

you mean this is a problem on their end? the docs say "resource" is non-null so `resource==null ? null : resource.data` might be incorrect. https://firebase.google.com/docs/reference/rules/rules.firestore#.resource

doesn't work for me. **can't read or delete** any items in the icecream collection... ``` type Name = { first: string, last?: string } type User = { name: Name...

I hope you'll take a closer look at this. I changed the rules so just read and write are on the line. Without trying to delete anything, I see an...

I am investigating further. Writing seems to work. Maybe my error on the reading?

Ok making progress...these rules seem to work. Separating just `read` and `write` wasn't good enough. I didn't realize you need to separate `create`, `update`, and `delete`. Hmmm...is this my error?...

Ok you can close this. Maybe Fireward should give a warning if delete and reads are combined, or do something different. It sure looks like my original rule - you...

When you say structural integrity, are you talking about all that automatic checking you do to make sure only the correct keys/fields are provided? I can see how writing that...

I'm tempted to create a bunch of TypeScript types for the Map MapDiff RulesString etc. and code it up in VS Code and take advantage of all the type checking,...

Well I gave it a go. Check this out! It was a pleasure to type the rules in TypeScript in VS Code with the compile-time type-checking, auto-complete, Prettier, refactoring, etc....