Firebase: Firestore Query for Longest Match

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Firebase: Firestore Query for Longest Match



My document looks like:


ABC: 1
ABCD: 2
ABCDE: 3
ABCDEF: 4



I want to query for longest match, in other words, myVar = ABCDEFGHIJ and I want the field with value 4 (the longest match).


myVar = ABCDEFGHIJ


4









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard