Created
March 27, 2018 14:30
-
-
Save komkanit/8dc18c2a48be44697aa9cd826bcfd5c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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