Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
670 views
in Technique[技术] by (71.8m points)

firebase - Restrict an array size up to N indices (Security Rules)

Consider the following maximum array size: Array

Now let's say a user performs a push() childByAutoId. What I expect to happen is

if (arraySize > arraySizeLimit) {
// Delete first Index
}

I am fairly new to firebase security rules. I did some reading but still struggling with this. I apologise for not having any "attempt" code to present.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...