I have one last query remaining in my application to complete transferring it from Parse and it seems to be the one that's going to cause the most trouble.
Here's the Parse query:
let potential_query = UserAccounts.query()!
let excluded_objects = [String]()
for(...) excluded_objects.push(...);
potential_query.whereKey('objectId', notContainedIn: excluded_objects);
potential_query.whereKey('question_count', greaterThan: 2);
potential_query.whereKey('deactivated', equalTo: false);
potential_query.whereKey('discovery_enabled', equalTo: true);
potential_query.whereKey('gender', equalTo: 'MALE');
potential_query.whereKey('age', greaterThan: 18);
potential_query.whereKey('age', lessThan: 23);
potential_query.whereKey('location', nearGeoPoint: ..., withinMiles: 15); // User within 15 miles based on location data.
potential_query.limit = 1;
Please note that the values provided are not static and are changed based on the authenticated user. Going through the documentation for Firebase it seems like there's not really any options for advanced querying. objectId
would be the uid
in Firebase.
Is this even possible?