Skip to content

Commit 6fd4bc1

Browse files
authored
Merge pull request #19 from oslabs-beta/readmeFix
Fix readme for setting up router
2 parents a860188 + d369193 commit 6fd4bc1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,20 @@ const GraphQLRouter =
7676
ObsRouter >
7777
{
7878
Router, // Router that is initialized by server.
79-
path = '/graphql', // endpoint for graphQL queries, default to '/graphql'
79+
path: '/graphql', // endpoint for graphQL queries, default to '/graphql'
8080
typeDefs: types, // graphQL typeDefs
8181
resolvers: resolvers, // graphQL resolvers
8282
usePlayground: true, // Boolean to allow for graphQL playground, default to false
8383
useCache: true, // Boolean to toggle all cache functionality, default to true
8484
redisPort: 6379, // Desired redis port, default to 6379
8585
policy: 'allkeys-lru', // Option select your Redis policy, default to allkeys-lru
86-
maxmemory = '2000mb', // Option to select Redis capacity, default to 2000mb
86+
maxmemory: '2000mb', // Option to select Redis capacity, default to 2000mb
8787
searchTerms: [] //Optional array to allow broad queries to store according to search fields so individual searches are found in cache
8888
persistQueries: true, //Boolean to toggle the use of persistent queries, default to false - NOTE: if using, must also be enabled in client wrapper
89-
hashTableSize = 16, // Size of hash table for persistent queries, default to 16
90-
maxQueryDepth = 0, // Maximum depth of query, default to 0
89+
hashTableSize: 16, // Size of hash table for persistent queries, default to 16
90+
maxQueryDepth: 0, // Maximum depth of query, default to 0
9191
customIdentifier: ['__typename', '_id'], // keys to be used to idedntify and normalize object
92-
mutationTableMap = {}, //Object where keys are add mutation types and value is an array of affected tables (e.g. {addPlants: ['plants'], addMovie: ['movies']})
92+
mutationTableMap: {}, //Object where keys are add mutation types and value is an array of affected tables (e.g. {addPlants: ['plants'], addMovie: ['movies']})
9393
};
9494
```
9595

0 commit comments

Comments
 (0)