dorian
09/12/2017, 7:46 PMdorian
09/12/2017, 7:47 PMuser
09/12/2017, 7:54 PMthomas jackson
09/12/2017, 8:08 PMuser
09/12/2017, 8:44 PMuser
09/12/2017, 9:09 PMagartha
09/12/2017, 9:19 PMallpwrfulroot
09/13/2017, 1:02 AMallpwrfulroot
09/13/2017, 1:20 AMThomas Bauer
09/13/2017, 2:53 AMThomas Bauer
09/13/2017, 3:05 AMmentallyretired
09/13/2017, 4:30 AMMikk676
09/13/2017, 8:21 AMYao Hong Chun
09/13/2017, 8:43 AM{
currentUser {
id email
}
}
congy
09/13/2017, 9:12 AMnilan
09/13/2017, 10:18 AMYao Hong Chun
09/13/2017, 10:18 AMYao Hong Chun
09/13/2017, 10:20 AMnilan
09/13/2017, 10:27 AMnick.kozhukharenko
09/13/2017, 11:16 AMIs my data backed up?
Yes. We take periodic snapshots and can perform point in time restore up to 7 days back in time.As I see graphcool do automatic backups (as it mentioned on the pricing page). But how to restore the DB? @nilan
nick.kozhukharenko
09/13/2017, 11:43 AMmwickett
09/13/2017, 6:04 PM{
"error": "Function returned invalid status code: 500. Raw body: {\n \"code\": 500,\n \"error\": \"Script generated an unhandled synchronous exception.\",\n \"details\": \"TypeError: Cannot read property 'graphcool' of undefined\",\n \"name\": \"TypeError\",\n \"message\": \"Cannot read property 'graphcool' of undefined\",\n \"stack\": \"TypeError: Cannot read property 'graphcool' of undefined\\n at fromEvent (/data/_verquire/graphcool-lib/0.0.3/node_modules/graphcool-lib/dist/src/index.js:96:39)\\n at module.exports (/data/io/d653e2ed87574830ac0f87875203c432/webtask.js:7:19)\\n at /data/io/d653e2ed87574830ac0f87875203c432/webtask.js:40:24\\n at Async.series.Request.get.Async.series.Async.forEachOf.createError.code (/data/sandbox/lib/sandbox.js:854:33)\\n at /data/sandbox/node_modules/async/dist/async.js:3853:24\\n at replenish (/data/sandbox/node_modules/async/dist/async.js:946:17)\\n at iterateeCallback (/data/sandbox/node_modules/async/dist/async.js:931:17)\\n at /data/sandbox/node_modules/async/dist/async.js:906:16\\n at /data/sandbox/node_modules/async/dist/async.js:3858:13\\n at /data/sandbox/lib/sandbox.js:928:24\"\n}"
}
mwickett
09/13/2017, 6:04 PM'use latest'
const fromEvent = require('graphcool-lib').fromEvent
module.exports = function(event) {
const graphcool = fromEvent(event)
const api = graphcool.api('simple/v1')
function getPrices() {
return api
.request(
`
query {
allPricings {
type
price
}
}
`
)
.then(pricingQueryResult => {
console.log(pricingQueryResult)
const filteredEntries = pricingQueryResult.allPricings.filter(
price => price.type === event.data.type
)
const applicableEntry = filteredEntries.length
? filteredEntries[0]
: false
console.log(applicableEntry.price)
return applicableEntry.price
})
.catch(error => {
return { error: error }
})
}
return getPrices().then((price) => {
const dataResponse = Object.assign({}, event.data, { priceBase: price })
return { data: dataResponse }
})
}
mwickett
09/13/2017, 6:05 PMmwickett
09/13/2017, 6:06 PMgraphcool-lib
, but I can’t see it.chandlervdw
09/13/2017, 6:57 PMPublic Key
in the Verify Signature (generated via lokey
and the JSON Web Key Set endpoint for my client). What gives?dardub
09/13/2017, 7:44 PMdardub
09/13/2017, 7:46 PMbkoltai
09/13/2017, 11:11 PMmatty
09/13/2017, 11:47 PM