mongo config
This commit is contained in:
parent
6d5dc7592e
commit
fc5ebd6b53
|
@ -38,8 +38,10 @@ function enrichQueryFields(fields, parameters) {
|
|||
enrichedQuery[key] = template(parameters)
|
||||
}
|
||||
|
||||
if (fields.json || fields.customData) {
|
||||
enrichedQuery.json = JSON.parse(fields.json || fields.customData)
|
||||
if (enrichedQuery.json || enrichedQuery.customData) {
|
||||
enrichedQuery.json = JSON.parse(
|
||||
enrichedQuery.json || enrichedQuery.customData
|
||||
)
|
||||
delete enrichedQuery.customData
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ const SCHEMA = {
|
|||
connectionString: {
|
||||
type: FIELD_TYPES.STRING,
|
||||
required: true,
|
||||
default: "localhost",
|
||||
default: "mongodb://localhost:27017",
|
||||
},
|
||||
db: {
|
||||
type: FIELD_TYPES.STRING,
|
||||
|
|
Loading…
Reference in New Issue