A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://querybuilder.js.org/api/module-plugins.MongoDbSupport.html below:

plugins.MongoDbSupport

  1. Home
  2. Classes
  3. plugins.MongoDbSupport
new MongoDbSupport()
Description

Allows to export rules as a MongoDB find object as well as populating the builder from a MongoDB object.

Details

Methods
getMongo( [ data ] ) → {object}
Description

Returns rules as a MongoDB query

Parameters Name Type Attributes Description data object <optional>

current rules by default

Returns

Fires

Throws

Details

getRulesFromMongo( query ) → {object}
Description

Converts a MongoDB query to rules

Parameters Name Type Description query object

Returns

Fires

Throws

Details

setRulesFromMongo()
Description

Sets rules a from MongoDB query

Details

Events
changer:getMongoDBField
Description

Modifies the MongoDB field used by a rule

Parameters Name Type Description field string rule Rule

Returns

Details

changer:getMongoDBFieldID
Description

Returns a filter identifier from the MongoDB field

Parameters Name Type Description field string value *

Returns

Details

changer:groupToMongo
Description

Modifies the MongoDB expression generated for a group

Parameters Name Type Description expression object group Group

Returns

Details

changer:mongoToGroup
Description

Modifies the group generated from the MongoDB expression

Parameters Name Type Description group object expression object

Returns

Details

changer:mongoToRule
Description

Modifies the rule generated from the MongoDB expression

Parameters Name Type Description rule object expression object

Returns

Details

changer:parseMongoNode
Description

Custom parsing of a MongoDB expression, you can return a sub-part of the expression, or a well formed group or rule JSON

Parameters Name Type Description expression object

Returns

Details

changer:ruleToMongo
Description

Modifies the MongoDB expression generated for a rul

Parameters Name Type Description expression object rule Rule value * valueWrapper function

function that takes the value and adds the operator

Returns

Details


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4