alejandronanez
06/22/2017, 1:30 AMajmakhl
06/22/2017, 1:56 AMalejandronanez
06/22/2017, 1:59 AMalejandronanez
06/22/2017, 2:00 AMniwat
06/22/2017, 2:05 AMvisualbbasic
06/22/2017, 2:16 AMvisualbbasic
06/22/2017, 2:16 AMvisualbbasic
06/22/2017, 2:17 AMvisualbbasic
06/22/2017, 2:17 AM{
"edge": {
"node": {
"allStuff2": {
"edge": {
"node": {
"prop3": "c"
}
}
},
"prop1": "a",
"props2": "b"
}
}
}
becomes
{
"allStuff2": {
"prop3": "c"
},
"prop1": "a",
"props2": "b"
}
aetherall
06/22/2017, 2:37 AMaetherall
06/22/2017, 2:58 AMaetherall
06/22/2017, 3:03 AMdomthegrom
06/22/2017, 4:51 AMdomthegrom
06/22/2017, 4:55 AMWorldChat
demo has just for my RN app 😄 just want to make sure its do-able with gifted chathueezer
06/22/2017, 7:07 AMppatidar
06/22/2017, 7:17 AMthe_bluescreen
06/22/2017, 10:40 AMthe_bluescreen
06/22/2017, 10:40 AMthe_bluescreen
06/22/2017, 10:40 AMdarkbcx
06/22/2017, 1:00 PMtomhut
06/22/2017, 1:04 PMdarkbcx
06/22/2017, 1:09 PMfetch
. but i got 500 response code.
JS: {
JS: "_bodyInit": "",
JS: "_bodyText": "",
JS: "type": "default",
JS: "url": "",
JS: "status": 500,
JS: "ok": false,
JS: "statusText": "Internal Server Error",
JS: "headers": {
JS: "map": {
JS: "null": [
JS: "HTTP/1.1 500 Internal Server Error"
JS: ],
JS: "connection": [
JS: "keep-alive"
JS: ],
JS: "content-length": [
JS: "0"
JS: ],
JS: "date": [
JS: "Thu, 22 Jun 2017 12:26:16 GMT"
JS: ],
JS: "server": [
JS: "akka-http/10.0.5"
JS: ],
JS: "via": [
JS: "1.1 <http://5bbe31b991a19517db24426ef2d14391.cloudfront.net|5bbe31b991a19517db24426ef2d14391.cloudfront.net> (CloudFront)"
JS: ],
JS: "x-amz-cf-id": [
JS: "0JnDE56wnc90wnfu7DY17VaYcdhrPskk63dVMZHgT6PvWjrl0I8zkw=="
JS: ],
JS: "x-android-received-millis": [
JS: "1498134376838"
JS: ],
JS: "x-android-response-source": [
JS: "NETWORK 500"
JS: ],
JS: "x-android-selected-protocol": [
JS: "http/1.1"
JS: ],
JS: "x-android-sent-millis": [
JS: "1498134376276"
JS: ],
JS: "x-cache": [
JS: "Error from cloudfront"
JS: ]
JS: }
JS: }
JS: }
darkbcx
06/22/2017, 1:11 PMfetch('<https://api.graph.cool/file/v1/cj3rp40vd64ho0113z6fynxxm>', {
method: 'POST',
body: data
}).then(response => {
console.log(JSON.stringify(response, null, 2))
return response.json()
}).then(file => {
console.log(file);
}).catch(err => {
console.log('err : ', err);
})
picosam
06/22/2017, 2:36 PMwatchQuery
in an Angular Router Data Resolver before?dk0r
06/22/2017, 2:48 PMFiltering objects with fragments
section @ https://www.learnapollo.com/tutorial-react-native/react-native-04.dk0r
06/22/2017, 2:48 PMThis will make sure that only the required fields of the pokemon object get passed to PokemonCard
dk0r
06/22/2017, 2:49 PMdk0r
06/22/2017, 2:49 PMdk0r
06/22/2017, 2:50 PMmmw
06/22/2017, 2:53 PMname
the other asking for id
) both components are fed the object with both name
and id
. Using a filter will make sure the object passed contains only the info requested (relay does this automatically)