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
-34
Original file line number
Diff line number
Diff line change
@@ -86,8 +86,6 @@ See the [example Next.js app and GraphQL API](example/readme.md).
86
86
87
87
### Provider
88
88
89
-
[src/components.mjs:23-23](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/components.mjs#L23-L23'Source code on GitHub')
90
-
91
89
A React component that puts a [GraphQL](#graphql) instance in context for nested [Consumer](#consumer) components to use.
92
90
93
91
**Parameters**
@@ -111,8 +109,6 @@ Returns **ReactElement** React virtual DOM element.
111
109
112
110
### Consumer
113
111
114
-
[src/components.mjs:39-39](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/components.mjs#L39-L39'Source code on GitHub')
115
-
116
112
A React component that gets the [GraphQL](#graphql) instance from context.
117
113
118
114
**Parameters**
@@ -137,8 +133,6 @@ Returns **ReactElement** React virtual DOM element.
137
133
138
134
### Query
139
135
140
-
[src/components.mjs:241-245](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/components.mjs#L241-L245'Source code on GitHub')
141
-
142
136
A React component to manage a GraphQL query or mutation.
143
137
144
138
**Parameters**
@@ -217,8 +211,6 @@ Returns **ReactElement** React virtual DOM element.
217
211
218
212
### QueryRender
219
213
220
-
[src/components.mjs:247-254](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/components.mjs#L247-L254'Source code on GitHub')
@@ -249,8 +241,6 @@ Returns **ReactElement** React virtual DOM element.
249
241
250
242
### ConsumerRender
251
243
252
-
[src/components.mjs:247-254](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/components.mjs#L247-L254'Source code on GitHub')
@@ -271,8 +261,6 @@ Returns **ReactElement** React virtual DOM element.
271
261
272
262
### HTTPError
273
263
274
-
[src/graphql.mjs:19-207](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L19-L207'Source code on GitHub')
[src/graphql.mjs:19-207](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L19-L207'Source code on GitHub')
288
-
289
275
A GraphQL operation object. Additional properties may be used; all are sent to the GraphQL server.
[src/graphql.mjs:19-207](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L19-L207'Source code on GitHub')
301
-
302
286
Options for a GraphQL fetch request. See [polyfillable fetch options](https://github.github.io/fetch/#options).
[src/graphql.mjs:19-207](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L19-L207'Source code on GitHub')
316
-
317
299
A way to override request options generated for a fetch. Modify the provided options object directly; no return.
[src/graphql.mjs:19-207](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L19-L207'Source code on GitHub')
337
-
338
318
A lightweight GraphQL client that caches requests.
339
319
340
320
**Parameters**
@@ -358,14 +338,10 @@ const graphql = new GraphQL({
358
338
359
339
#### cache
360
340
361
-
[src/graphql.mjs:25-25](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L25-L25'Source code on GitHub')
362
-
363
341
GraphQL request cache.
364
342
365
343
#### reset
366
344
367
-
[src/graphql.mjs:75-79](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L75-L79'Source code on GitHub')
368
-
369
345
Resets the cache. Useful when a user logs out.
370
346
371
347
**Examples**
@@ -376,8 +352,6 @@ graphql.reset()
376
352
377
353
#### query
378
354
379
-
[src/graphql.mjs:194-206](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L194-L206'Source code on GitHub')
[src/graphql.mjs:19-207](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L19-L207'Source code on GitHub')
392
-
393
365
JSON serializable result of a request (including all errors and data) for caching purposes.
[src/graphql.mjs:19-207](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L19-L207'Source code on GitHub')
[src/graphql.mjs:19-207](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L19-L207'Source code on GitHub')
419
-
420
388
A promise for an in-flight query that resolves the request cache.
[src/graphql.mjs:19-207](https://github.com/jaydenseric/graphql-react/blob/79fe2b0ccbc29aa48d5bc47415c853fa282384c0/src/graphql.mjs#L19-L207'Source code on GitHub')
0 commit comments