jt9001
10/02/2017, 7:18 AMmael
10/02/2017, 9:25 AMorder
and I want to attach a discount
. So I update order
with discountId
. It works, discount is properly attached to order
, but it does not call transform_argument
on my order
or on my discount
(and I've created pipelines functions for both) πtaikn
10/02/2017, 10:19 AMclem
10/02/2017, 11:06 AMdevan
10/02/2017, 12:47 PMmanas
10/02/2017, 2:10 PMmwickett
10/02/2017, 3:08 PMtekk
10/02/2017, 4:19 PMauthenticateAnonymousUser()
. I can create the user using a secret string, but there is other information I would like to attach to the User record. Would I just subsequently run a updateUser
mutation as well, or is there a better way to do it?pcooney10
10/02/2017, 5:16 PMrein
10/02/2017, 6:16 PMrein
10/02/2017, 6:17 PMjferrettiboke
10/02/2017, 8:03 PMFile
type to a field (making a relation) or link the file URL directly to the field as a String
? Let's say the field is called photo
within User
type.joar
10/02/2017, 8:09 PMameistad
10/02/2017, 8:29 PMarthur
10/02/2017, 8:43 PMchandlervdw
10/02/2017, 9:06 PMuser.id
within a user query? const userQuery = gql`
query userQuery {
user {
id
organizations {
id
name
campaigns(filter: { users_some: { id: user_id } }) {
id
name
description
}
}
}
}
`;
That fails with the user_id
reference (obviously)Radiegtya
10/03/2017, 1:59 PMClay
10/03/2017, 4:36 PMfunction uploadProfilePicToGraphCool(picture) {
var data = new FormData()
data.append('data', picture)
return fetch('<https://api.graph.cool/file/v1/<ENDPOINT>>', {
method: 'POST',
body: data
}).then((response) => {
return response.json()
}).then((image) => {
return image
})
}
Iβm currently getting status\":500,\"statusText\":\"Internal Server Error
and
"FetchError\",\"message\":\"invalid json response body at <https://api.graph.cool/file/v1/cj3qwr1jgbx060113fkcpa7tq> reason: Unexpected end of input\",\"type\":\"invalid-json\"}
Does anyone know what could have possibly gone wrong?kenyk7
10/03/2017, 4:47 PMbe4r
10/03/2017, 5:25 PMfunction Html({ content, state }) {
return (
<html>
<body>
<div id="content" dangerouslySetInnerHTML={{ __html: content }} />
<script dangerouslySetInnerHTML={{
__html: `window.__APOLLO_STATE__=${JSON.stringify(state).replace(/</g, '\\u003c')};`,
}} />
</body>
</html>
);
}
without including the bundle.js script, js wont work. But if I do, the queries refetch after the server renders static markup.eruby
10/03/2017, 6:00 PMnilan
10/03/2017, 6:08 PMbe4r
10/03/2017, 6:08 PMpeterp
10/03/2017, 6:08 PMmael
10/03/2017, 6:09 PMauser
10/03/2017, 6:12 PMtomhut
10/03/2017, 6:12 PMauser
10/03/2017, 6:12 PMchandlervdw
10/03/2017, 6:12 PMnilan
10/03/2017, 6:12 PM