Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Last active May 16, 2018 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpsmith/4c6b4d739ee74b5c8ec65f00be7b0e01 to your computer and use it in GitHub Desktop.
Save wpsmith/4c6b4d739ee74b5c8ec65f00be7b0e01 to your computer and use it in GitHub Desktop.
GraphQL Caching Problems
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
}
}
}
}
{
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
}
}
}
}
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
}
}
}
}
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"}
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
}
}
}
}
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
}
}
}
}
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
}
}
}
}
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