zoolo

this is a function that initializes a database call

// this creates a messages
const message = await zoolo('messages').create({ name: 'meine Nachricht' })

this is the context of holding the input the block received and the current user. You can update the data object with the results of your current block for further usage in a following block.

{
	data: {
			hello: 'world'
	},
	user: {
			_id: 123456,
			email: 'maxmuster@zoolo.io',
			profile: {
				firstName: 'Max',
				lastName: 'Muster'
			}
	}
}

// add data so it can be used in the next block

_z.data.forUsageInNext = 'Hello World'

// within the next block

console.log(_z.data.forUsageInNext) 

// prints Hello World

Last updated