Skip to content

Commit 57f7da6

Browse files
committedJun 28, 2022
docs: Fix typos
1 parent 81e33e2 commit 57f7da6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎docs/architecture.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ As already mentioned, when a mutated document already exists in the store throug
180180
Let us illustrate with this example:
181181

182182
```js
183-
const Q1 = { definition: Q('io.cozy.todos').getById('my-todo'), options: { as: todoslist-full, fetchPolicy: lessThan30s }}
184-
const Q2 = { definition: Q('io.cozy.todos').getById('my-todo').select(['label']), options: { as: todoslist-label }}
183+
const Q1 = { definition: Q('io.cozy.todos').getById('my-todo'), options: { as: 'todoslist-full', fetchPolicy: lessThan30s }}
184+
const Q2 = { definition: Q('io.cozy.todos').getById('my-todo').select(['label']), options: { as: 'todoslist-label' }}
185185

186186
await client.query(Q1) // returns { _id: 'my-todo', _type: 'io.cozy.todos', label: 'TODOTODO' }, from the database
187187
await client.query(Q2) // returns { label: 'TODOTODO' }, from the database

0 commit comments

Comments
 (0)
Please sign in to comment.