mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-31 15:22:25 -05:00 
			
		
		
		
	Some updates
This commit is contained in:
		
					parent
					
						
							
								0b4d09b62e
							
						
					
				
			
			
				commit
				
					
						1e43acf743
					
				
			
		
					 4 changed files with 9 additions and 9 deletions
				
			
		|  | @ -5,13 +5,13 @@ import { | |||
| 	INodeTypeDescription, | ||||
| } from 'n8n-workflow'; | ||||
| 
 | ||||
| 
 | ||||
| export class ExampleNode implements INodeType { | ||||
| 	description: INodeTypeDescription = { | ||||
| 		displayName: 'Example Node', | ||||
| 		name: 'exampleNode', | ||||
| 		group: ['transform'], | ||||
| 		version: 1, | ||||
| 		subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', | ||||
| 		description: 'Basic Example Node', | ||||
| 		defaults: { | ||||
| 			name: 'Example Node', | ||||
|  | @ -33,7 +33,6 @@ export class ExampleNode implements INodeType { | |||
| 		] | ||||
| 	}; | ||||
| 
 | ||||
| 
 | ||||
| 	async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> { | ||||
| 
 | ||||
| 		const items = this.getInputData(); | ||||
|  | @ -41,7 +40,7 @@ export class ExampleNode implements INodeType { | |||
| 		let item: INodeExecutionData; | ||||
| 		let myString: string; | ||||
| 
 | ||||
| 		// Itterates over all input items and add the key "myString" with the
 | ||||
| 		// Iterates over all input items and add the key "myString" with the
 | ||||
| 		// value the parameter "myString" resolves to.
 | ||||
| 		// (This could be a different value for each item in case it contains an expression)
 | ||||
| 		for (let itemIndex = 0; itemIndex < items.length; itemIndex++) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue