donald
11/09/2017, 11:03 PMimport { fromEvent } from "graphcool-lib";
export default async event => {
const projectId = event.context.projectId;
const api = fromEvent({ context: { graphcool: { projectId } } }).api(
"simple/v1"
);
return api.request(reminderContactQuery, { reminderId }).then(result => {
// do some stuff in here and return the result
})
}
agartha
11/10/2017, 12:44 AMfromEvent(event)
donald
11/10/2017, 1:04 AMToosick
11/10/2017, 5:25 PM