jspr
09/19/2017, 12:02 AMid
field: `id: ID! @isUnique`" The instagram.graphql schema is "type Post { description: String! imageUrl: String! }jspr
09/19/2017, 12:36 AMid
field: `id: ID! @isUnique`") Using graphcool 1.3.7.devan
09/19/2017, 12:57 AMjspr
09/19/2017, 1:00 AMdevan
09/19/2017, 1:01 AMjspr
09/19/2017, 1:04 AMbe4r
09/19/2017, 1:43 AMApp
is a graphql
HOC that quereis the user and passes the user
as a prop to ChildComponent
. The ChildComponent
is also a graphql
HOC that uses the user
prop as a variable. However, when I render server side, I get an error saying that user
is undefined. How can I go about checking the authentication state on the server side and passing down the user
props to the ChildComponent
from the server?zaksingh
09/19/2017, 2:17 AMNo 'Access-Control-Allow-Origin' header is present on the requested resource
upon trying to use fetch
to upload a filematty
09/19/2017, 3:15 AMmatty
09/19/2017, 3:19 AMconst body = new global.FormData()
body.append('data', file)
const res = await fetch(GRAPHCOOL_FILE_ENDPOINT, {
method: 'POST',
body,
})
matty
09/19/2017, 3:19 AMmatty
09/19/2017, 3:20 AMplarson
09/19/2017, 3:50 AMmatty
09/19/2017, 3:55 AMmatty
09/19/2017, 3:55 AMplarson
09/19/2017, 3:56 AMplarson
09/19/2017, 3:57 AMplarson
09/19/2017, 4:00 AMmatty
09/19/2017, 4:01 AMmatty
09/19/2017, 4:01 AMmatty
09/19/2017, 4:01 AMmatty
09/19/2017, 4:01 AMplarson
09/19/2017, 4:08 AMmatty
09/19/2017, 4:13 AMmatty
09/19/2017, 4:13 AMplarson
09/19/2017, 4:51 AMproteus
09/19/2017, 7:40 AMproteus
09/19/2017, 7:40 AMproteus
09/19/2017, 7:41 AMproteus
09/19/2017, 7:53 AM