For some reason, when it comes to firestore.rules file, app prototyper does not do so well.
- It removes previous, unrelated code, even though it was instructed to not modify/change/update them.
- It generates wrong or lacking rules.
- It does not correctly update ‘fields’ or ‘# of fields’ given.
- generates long and redundant code.
any fix?
isn’t that only for excluding firestore.rules files from AI’s scope?
I still want it to code rules, but code it right.
Can you share the prompt you used?
Write Firestore security rules to allow authenticated users to follow other users. Each “follow” is stored in a follows
collection where a document ID is the UID of the follower and contains a map of followed UIDs or subcollection entries. Only authenticated users should be able to create or delete their own follow documents or entries. Users must not be allowed to follow on behalf of others.
That’s a pretty good prompt.
I’m not sure how to help.
1 Like
haha, I appreciate your willingness. All good, I fixed it. I mean the error not the problem.
1 Like