Skip to content

Commit 0070f13

Browse files
author
Ari Bouius
committed
Update README.md
1 parent 00ece7e commit 0070f13

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,13 @@ new ApiClient({
102102
})
103103
```
104104

105-
As an added benefit, you can also describe and customize how fields get deserialized. Field configuration is entirely _additive_, so any omitted fields are simply passed through unchanged.
105+
You can also describe and customize how fields get deserialized. Field configuration is entirely _additive_, so any omitted fields are simply passed through unchanged.
106106
```javascript
107107
const schema = {
108108
todos: {
109109
type: 'todos',
110110
fields: {
111111
title: 'string', // shorthand
112-
priority: {
113-
type: 'number', // converts value to integer
114-
},
115112
status: {
116113
resolve: status => {
117114
return status.toUpperCase()
@@ -432,10 +429,10 @@ const result = useQuery('todos', { ssr: false })
432429
- `config: Object`
433430
- `cacheTime: Int | null`:
434431
- The number of seconds to cache the query.
435-
- Defaults client configuration value.
432+
- Defaults to client configuration value.
436433
- `staleTime: Int | null`
437434
- The number of seconds until the query becomes stale.
438-
- Defaults client configuration value.
435+
- Defaults to client configuration value.
439436
- `ssr: Boolean`
440437
- Set to `false` to disable server-side rendering of query.
441438
- Defaults to context value.
@@ -483,6 +480,8 @@ const result = useQuery('todos', { ssr: false })
483480
- A `links` object returned from a successful request, if present.
484481
- `error: Object | undefined`
485482
- A request error, if thrown or returned from the server.
483+
- `errors: Array | undefined`
484+
- Validation errors returned from the server.
486485
- `isLoading: Boolean`
487486
- Indicates whether the mutation is currently being submitted.
488487
- `client: ApiClient`

0 commit comments

Comments
 (0)