Moved MongoDb connection string override into credentials (#1)

* interim work on credentials refactor

* move conn string override for mongodb into credentials and enhance credentials typings
This commit is contained in:
Chris Lonardo
2020-04-06 21:07:54 -04:00
committed by GitHub
parent 00fc6e5980
commit d80deda34f
5 changed files with 149 additions and 68 deletions

View File

@@ -23,31 +23,6 @@ export const nodeDescription: INodeTypeDescription = {
}
],
properties: [
{
displayName: 'Override conn string',
name: 'shouldOverrideConnString',
type: 'boolean',
default: false,
description:
'Whether to override the generated connection string. Credentials will also be ignored in this case.'
},
{
displayName: 'Conn string',
name: 'connStringOverrideVal',
type: 'string',
typeOptions: {
rows: 1
},
displayOptions: {
show: {
shouldOverrideConnString: [true]
}
},
default: '',
placeholder: `mongodb://USERNAMEHERE:PASSWORDHERE@localhost:27017/?authSource=admin&readPreference=primary&appname=n8n&ssl=false`,
required: false,
description: `If "Override conn string" is checked, the value here will be used as a MongoDB connection string, and the MongoDB credentials will be ignored`
},
{
displayName: 'Operation',
name: 'operation',