Skip to content

Instantly share code, notes, and snippets.

@rzvdaniel
Last active April 26, 2019 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rzvdaniel/9b6ef473ab361bdc59d27cfc4bdd1150 to your computer and use it in GitHub Desktop.
Save rzvdaniel/9b6ef473ab361bdc59d27cfc4bdd1150 to your computer and use it in GitHub Desktop.
[Medium] Moleculer Mixins - A short introduction - world.service.js
"use strict";
module.exports = {
name: "world",
/**
* Actions
*/
actions: {
/**
* Say a 'Hello World'
*
* @returns
*/
helloWorld() {
return this.sayHelloWorld();
}
},
/**
* Methods
*/
methods: {
sayHelloWorld() {
return "Hello World";
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment