Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Dec 25, 2023
1 parent 4d615b1 commit e9daa02
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/graphqlsp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,11 @@ Secondly it supports a few patterns which we'll add to as time progresses:
const result = (await client.query()) || useFragment();
const [result] = useQuery(); // --> urql
const { data } = useQuery(); // --> Apollo
// Missing cases:
const { field } = useFragment(); // can't destructure into your data from the start
const [{ data }] = useQuery(); // can't follow array destructuring with object destructuring
const { field } = useFragment();
const [{ data }] = useQuery();
const {
data: { pokemon },
} = useQuery(); // can't destructure into your data from the start
} = useQuery();
```

Lastly we don't track mutations/subscriptions as some folks will add additional fields to properly support
Expand Down

0 comments on commit e9daa02

Please sign in to comment.