mongo config

This commit is contained in:
Martin McKeaveney 2021-01-15 13:42:14 +00:00
parent 6d5dc7592e
commit fc5ebd6b53
2 changed files with 5 additions and 3 deletions

View File

@ -38,8 +38,10 @@ function enrichQueryFields(fields, parameters) {
enrichedQuery[key] = template(parameters) enrichedQuery[key] = template(parameters)
} }
if (fields.json || fields.customData) { if (enrichedQuery.json || enrichedQuery.customData) {
enrichedQuery.json = JSON.parse(fields.json || fields.customData) enrichedQuery.json = JSON.parse(
enrichedQuery.json || enrichedQuery.customData
)
delete enrichedQuery.customData delete enrichedQuery.customData
} }

View File

@ -6,7 +6,7 @@ const SCHEMA = {
connectionString: { connectionString: {
type: FIELD_TYPES.STRING, type: FIELD_TYPES.STRING,
required: true, required: true,
default: "localhost", default: "mongodb://localhost:27017",
}, },
db: { db: {
type: FIELD_TYPES.STRING, type: FIELD_TYPES.STRING,