Last active
September 6, 2017 09:24
-
-
Save artembykov/e42a89dd2946440e41292a004b4f2d46 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
async function fetchData(client, name, queryConfig) { | |
const query = await client.createQuery({ name }, queryConfig); | |
console.log('Query created'); | |
return new Promise((resolve, reject) => { | |
console.log('Running query...'); | |
client.runQuery(query, resolve, reject); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment