You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-14Lines changed: 32 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,20 +64,36 @@ const GraphQLRouter =
64
64
ObsRouter >
65
65
{
66
66
Router,
67
-
typeDefs: types,
68
-
resolvers: resolvers,
69
-
redisPort:6379, //Desired redis port
70
-
useCache:true, //Boolean to toggle all cache functionality
71
-
usePlayground:true, //Boolean to allow for graphQL playground
72
-
persistQueries:true, //Boolean to toggle the use of persistant queries
73
-
searchTerms: [] //Optional array to allow board queries to store according to search fields so individual searches are found in cache
74
-
customIdentifier: ['id', '__typename'],
75
-
mutationTableMap = {}, //Object where keys are add mutation types and value is an array of affected tables (e.g. {addPlants: ['plants'], addMovie: ['movies']})
path ='/graphql', // endpoint for graphQL queries, default to '/graphql'
82
+
typeDefs: types, // graphQL typeDefs
83
+
resolvers: resolvers, // graphQL resolvers
84
+
usePlayground:true, // Boolean to allow for graphQL playground, default to false
85
+
useCache:true, // Boolean to toggle all cache functionality, default to true
86
+
redisPort:6379, // Desired redis port, default to 6379
87
+
policy:'allkeys-lru', // Option select your Redis policy, default to allkeys-lru
88
+
maxmemory ='2000mb', // Option to select Redis capacity, default to 2000mb
89
+
searchTerms: [] //Optional array to allow board queries to store according to search fields so individual searches are found in cache
90
+
persistQueries:true, //Boolean to toggle the use of persistant queries, default to false
91
+
hashTableSize =16, // Size of hash table for persistent queries, default to 16
92
+
maxQueryDepth =0, // Maximum depth of query, default to 0
93
+
customIdentifier: ['__typename', '_id'], // keys to be used to idedntify and normalize object
94
+
mutationTableMap = {}, //Object where keys are add mutation types and value is an array of affected tables (e.g. {addPlants: ['plants'], addMovie: ['movies']})
95
+
};
96
+
```
81
97
82
98
## Creating the Wrapper
83
99
@@ -93,10 +109,10 @@ const App = () => {
93
109
};
94
110
```
95
111
96
-
## Selecting useCache, LFU/LRU/WTinyLFU, capacity, and searchTerms (if any); default (if not provided) true, LFU, 2000
112
+
## Selecting useCache, LFU/LRU/WTinyLFU, capacity, persistQueries, and searchTerms (if any); default (if not provided): true, LFU, 2000, false
0 commit comments