How to use the moleculer-db.EntityNotFoundError function in moleculer-db

To help you get started, we’ve selected a few moleculer-db examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github icebob / kantab / backend / mixins / database.js View on Github external
entityNotFoundHook(ctx) {
			if (!ctx.locals.entity)
				return Promise.reject(new EntityNotFoundError(ctx.locals.entityID));
		},

moleculer-db

Moleculer service to store entities in database

MIT
Latest version published 5 months ago

Package Health Score

69 / 100
Full package analysis