function query(strings, ...values) {
return strings.slice(1).reduce((acc, v, i) => acc + JSON.stringify(values[i]) + v, strings[0])
}
undefined
var username = 'j.doe'
undefined
var password = 'asd123'
undefined
query`
mutation {
authenticate(username: ${username}, password: ${password}) {
token
}
}
`
"
mutation {
authenticate(username: "j.doe", password: "asd123") {
token
}
}
"
Created
June 16, 2019 17:20
-
-
Save s3rgeym/e79120e911330f2fa0fc02a71c68c2a0 to your computer and use it in GitHub Desktop.
Author
s3rgeym
commented
Jun 16, 2019
NPM
# Обновить пакет до последней версии
$ npm i vue@latest --save --force
# Обновить все пакеты
$ npm install -g npm-check-updates
$ ncu -u
$ npm i
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment