Skip to content

Commit

Permalink
Remove KV caching
Browse files Browse the repository at this point in the history
We don't have the tooling to properly support this - I'd like to return to it in a couple months, but this project is functional without the cache, too!
  • Loading branch information
kristianfreeman committed Jul 16, 2019
1 parent 8a64cc1 commit 5a2a591
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions src/handlers/apollo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { ApolloServer, gql } = require('apollo-server-cloudflare')
const { graphqlCloudflare } = require('apollo-server-cloudflare/dist/cloudflareApollo')
const { PokemonAPI } = require('../pokeapi')
const { KVCache } = require('../kv-cache')

const typeDefs = gql`
type PokemonSprites {
Expand Down Expand Up @@ -40,7 +39,6 @@ const server = new ApolloServer({
typeDefs,
resolvers,
introspection: true,
cache: new KVCache(),
dataSources: () => ({
pokemonAPI: new PokemonAPI(),
}),
Expand Down
16 changes: 0 additions & 16 deletions src/kv-cache.js

This file was deleted.

1 change: 0 additions & 1 deletion wrangler.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ private = false
route = "yoururl.com/*"
account_id = "abc123"
zone_id = "def456"
kv-namespaces = ["GRAPHQL_ON_WORKERS"]

0 comments on commit 5a2a591

Please sign in to comment.