Last active
May 16, 2018 19:22
-
-
Save wpsmith/4c6b4d739ee74b5c8ec65f00be7b0e01 to your computer and use it in GitHub Desktop.
GraphQL Caching Problems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query{ | |
observations(geocode: "38.00,-97.00", unit: METRIC, locale: "en-US") { | |
temperature, | |
feelsLike, | |
snowDepth | |
}, | |
astro(locId:"38.00,-97.00", language:"en-US", min:0, max:3) { | |
dateLocal, | |
sun { | |
riseSet { | |
riseLocal, | |
setLocal | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
observations(geocode: "38.00,-97.00", unit: METRIC, locale: "en-US") { | |
temperature, | |
feelsLike, | |
snowDepth | |
}, | |
astro(locId:"38.00,-97.00", language:"en-US", min:0, max:3) { | |
dateLocal, | |
sun { | |
riseSet { | |
riseLocal, | |
setLocal | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query{ | |
observations(geocode: "38.00,-97.00", unit: METRIC, locale: "en-US") { | |
feelsLike, | |
temperature, | |
snowDepth | |
}, | |
astro(locId:"38.00,-97.00", language:"en-US", min:0, max:3) { | |
dateLocal, | |
sun { | |
riseSet { | |
riseLocal, | |
setLocal | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query(location:String!){ | |
observations(geocode:$location, unit: METRIC, locale: "en-US") { | |
temperature, | |
feelsLike, | |
snowDepth | |
} | |
astro(locId:$location, language:"en-US", min:0, max:3) { | |
dateLocal, | |
} | |
} | |
variables{"locations":"38.00,-97.00"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query{observations(geocode: "38.00,-97.00", unit: METRIC, locale: "en-US") { | |
temperature, | |
feelsLike | |
}, | |
astro(locId:"38.00,-97.00", language:"en-US", min:0, max:3) { | |
dateLocal, | |
sun { | |
riseSet { | |
riseLocal, | |
setLocal | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query{ | |
observations(geocode: "38.00,-97.00", unit: METRIC, locale: "en-US") { | |
temperature, | |
feelsLike, | |
snowDepth, | |
heatIndex | |
}, | |
astro(locId:"38.00,-97.00", language:"en-US", min:0, max:3) { | |
dateLocal, | |
sun { | |
riseSet { | |
riseLocal, | |
setLocal | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query{ | |
observations(geocode: "38.00,-97.00", unit: METRIC, locale: "en-US") { | |
temperature, | |
feelsLike | |
}, | |
astro(locId:"38.00,-97.00", language:"en-US", min:0, max:3) { | |
dateLocal, | |
sun { | |
riseSet { | |
riseLocal, | |
setLocal | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query{ | |
observations(geocode: "38.00,-97.00", unit: METRIC, locale: "en-US") { | |
temperature, | |
MyTemp: feelsLike, | |
snowDepth | |
}, | |
astro(locId:"38.00,-97.00", language:"en-US", min:0, max:3) { | |
dateLocal, | |
sun { | |
riseSet { | |
riseLocal, | |
setLocal | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment