Skip to content

Instantly share code, notes, and snippets.

@komkanit
Created March 27, 2018 14:30
Show Gist options
  • Save komkanit/8dc18c2a48be44697aa9cd826bcfd5c7 to your computer and use it in GitHub Desktop.
Save komkanit/8dc18c2a48be44697aa9cd826bcfd5c7 to your computer and use it in GitHub Desktop.
// read.js
const data = requre('./entity')
data()
.then((list) => {
console.log(list)
})
--------------------------
// entity.js
module.exports = function() {
return client.ana({.....})
.then((results) => {
.
.
.
.
return list;
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment