jhony0311
11/30/2017, 4:13 PMagartha
11/30/2017, 4:15 PMlawjolla
11/30/2017, 4:15 PMagartha
11/30/2017, 4:16 PMtypes.graphql
with the full schema you can download, and see what you have to do manually with AWS AppSynclawjolla
11/30/2017, 4:16 PMjoshua
11/30/2017, 4:17 PMagartha
11/30/2017, 4:17 PMjoshua
11/30/2017, 4:18 PMlawjolla
11/30/2017, 4:18 PMjoshua
11/30/2017, 4:19 PMagartha
11/30/2017, 4:19 PMjoshua
11/30/2017, 4:19 PMagartha
11/30/2017, 4:20 PMagartha
11/30/2017, 4:20 PMMartin Peck
11/30/2017, 4:36 PMButch
11/30/2017, 5:36 PMEmi
11/30/2017, 5:41 PMmichaelchiche
11/30/2017, 5:50 PMgraphcool deploy --dry-run
, it always tells me my functions are wrong but graphcool deploy
works fine, and the functions work correctly?huv1k
11/30/2017, 5:50 PMorr
11/30/2017, 5:54 PM/me
endpoint as seen in many APIs. As per Graphcool's online examples, issuing a query from a resolver to the CRUD Api for the logged in user would look something like this:
const query = `
query me($id: ID!) {
viewer {
User(id: $id) {
< fields from the client go here >
}
}
}
`;
const variables = {
id: event.context.auth.nodeId,
};
const api = fromEvent(event).api('relay/v1');
const response = await api.request(
query,
variables,
);
My question is: Is there a more idiomatic way to do this in Graphcool? And would it make sense for the client to pass up a variable (potentially named fragment
) that will be used inside the query to fetch the fields the client is interested in?doug_w
11/30/2017, 5:55 PMdoug_w
11/30/2017, 6:05 PMv4.8.6
philip
11/30/2017, 8:47 PMoprearocks
11/30/2017, 9:49 PMoprearocks
11/30/2017, 9:49 PMGraham Ballantyne
12/01/2017, 12:53 AMoperationBefore
) fire in response to a change in a relationship? For example, I have Department
and Employee
types, and a relationship between the two to define managers. I want a hook to fire in response to the addToDepartmentManagers
mutation. I've tried hooking into both Department.update
and Employee.update
operations but neither get triggered.Graham Ballantyne
12/01/2017, 12:59 AMAddToDepartmentManagersPayload
, but that causes deploy
to throw an error.Lam Kieu
12/01/2017, 1:38 AMTrung Tròn Trịa
12/01/2017, 1:55 AMrizaSatyabudhi
12/01/2017, 3:21 AM