eugenistoc
03/26/2018, 8:43 PMUser
I want to allow everyone to be able to create a Profile
, however, I don’t want everyone to create a Profile
directly, only if its done through the createUser
query.
What is a pattern for dealing with workflow permissions like that?Michael Jones
03/26/2018, 9:47 PMkdn
03/26/2018, 10:42 PMrion
03/27/2018, 12:25 AMjeremie-stratumn
03/27/2018, 8:16 AMimport { fromEvent } from "graphcool-lib";
export default async event => {
const lib = fromEvent(event);
const client = lib.api("simple/v1");
const res = client.request(
`mutation {
deleteUser(id: "cjf9dqjab01da0161jl2q08s1"){
id
name
}
}`
);
return {
data: res
};
};
does not yield any data in res
. I can see in the logs that res = {}
Is that expected?dohomi
03/27/2018, 8:17 AMawait
is missing @jeremie-stratumnjeremie-stratumn
03/27/2018, 8:18 AMjeremie-stratumn
03/27/2018, 8:18 AMjeremie-stratumn
03/27/2018, 8:18 AMdohomi
03/27/2018, 8:18 AMdavidyoung
03/27/2018, 9:34 AMprisma token
but will this expire over time? What should I use to authenticate to the prisma graphql endpoint in my functiondavidyoung
03/27/2018, 10:04 AMpasa
03/27/2018, 10:35 AMpasa
03/27/2018, 10:36 AMfabien0102
03/27/2018, 12:14 PMBro
03/27/2018, 3:49 PMelmir
03/27/2018, 4:11 PMelmir
03/27/2018, 4:11 PMgraphcool/0.9.2 (darwin-x64) node-v9.5.0
woss
03/27/2018, 4:21 PMwoss
03/27/2018, 4:22 PMlawjolla
03/27/2018, 4:37 PMlawjolla
03/27/2018, 4:37 PMlawjolla
03/27/2018, 4:38 PMwesbos
03/27/2018, 5:36 PMharmony
03/27/2018, 5:38 PMharmony
03/27/2018, 5:38 PMharmony
03/27/2018, 5:38 PMwesbos
03/27/2018, 5:38 PMwesbos
03/27/2018, 5:38 PMjay
03/27/2018, 6:09 PM