MongoDBPredicateAdaptor

master

tjboneman/NSPredicate-MongoDB-Adaptor

NSPredicate-MongoDB-Adaptor

This class translates an NSPredicate query into to an appropriate mongodb query encapsulated within an NSDictionary.

The resulting NSDictionary may then be serialised (Using NSJSONSerialization for example) into a JSON format to be interpreted by mongodb.

Use cases: Makes it very easy to construct queries to send to mongodb based backend platforms such as Deployd

##Supported query types: ###logical

  • $not
  • $and
  • $or

###comparison

  • $lt
  • $lte
  • $gt
  • $gte
  • $ne
  • $regex

###membership

  • $in
  • $geoWithin

###javascript

  • $where

Description

  • Swift Tools 4.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Nov 10 2022 13:57:27 GMT-0500 (GMT-05:00)