From 45547ee5e03ab5f34f54f67280396858f7975080 Mon Sep 17 00:00:00 2001 From: joao-azevedo-hydradev Date: Mon, 10 Sep 2018 12:30:29 +0100 Subject: [PATCH 1/2] Missing ARRAY_CONTAINS operator Can you please add the ARRAY_CONTAINS operator? https://firebase.google.com/docs/firestore/reference/rest/v1beta1/StructuredQuery#Operator_1 I haven't tested but it I think you just need to add it to the fieldOps. --- Query.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Query.js b/Query.js index 7f342f0..4986e28 100644 --- a/Query.js +++ b/Query.js @@ -30,7 +30,8 @@ var FirestoreQuery_ = function (from, callback) { '<': 'LESS_THAN', '<=': 'LESS_THAN_OR_EQUAL', '>': 'GREATER_THAN', - '>=': 'GREATER_THAN_OR_EQUAL' + '>=': 'GREATER_THAN_OR_EQUAL', + 'array-contains': 'ARRAY_CONTAINS' } // @see {@link https://firebase.google.com/docs/firestore/reference/rest/v1beta1/StructuredQuery#Operator_2 FieldFilter Operator} From f28e75094cba1b1a85b0824122e4e665ffc0c3ee Mon Sep 17 00:00:00 2001 From: joao-azevedo-hydradev Date: Thu, 13 Sep 2018 09:39:13 +0100 Subject: [PATCH 2/2] rename array_contains to contains --- Query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Query.js b/Query.js index 4986e28..4565b42 100644 --- a/Query.js +++ b/Query.js @@ -31,7 +31,7 @@ var FirestoreQuery_ = function (from, callback) { '<=': 'LESS_THAN_OR_EQUAL', '>': 'GREATER_THAN', '>=': 'GREATER_THAN_OR_EQUAL', - 'array-contains': 'ARRAY_CONTAINS' + 'contains': 'ARRAY_CONTAINS' } // @see {@link https://firebase.google.com/docs/firestore/reference/rest/v1beta1/StructuredQuery#Operator_2 FieldFilter Operator}