Firebase: Firestore Query for Longest Match

Multi tool use
Multi tool use

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.

Lg E7GsK8IdbMo 7Z7yhEJWark 44cmQvc,du l ECipFVADyH
X16ApmOpBnP74L7xtDuh

Popular posts from this blog

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

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3