Skip to content

Commit d8bc7b8

Browse files
committed
readme: add graphql subscription info
1 parent 7f0701f commit d8bc7b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# React Native - React Query - Hasura - demo app
22

33
A basic React Native app to demonstrate [React Query](https://react-query.tanstack.com/) with [GraphQL Code generator](https://www.graphql-code-generator.com/) features.
4+
45
The GraphQL API is powered by [Hasura](https://hasura.io).
56

67
## React Native EU Conference 2021 Talk
@@ -9,6 +10,8 @@ The GraphQL API is powered by [Hasura](https://hasura.io).
910

1011
The app folders structure has been updated in this repo compared to the version demonstrated in the talk.
1112

13+
GraphQL subscription support example has been added.
14+
1215
## Full Stack
1316
### Front-end
1417
- Expo
@@ -133,11 +136,13 @@ To generate types and operations with GraphQL code generator (Hasura must be up)
133136
- [X] React Suspense and Error boundaries support
134137
- [X] FlatList with infinite queries
135138
- [X] Cache persistence in the Async storage
139+
- [X] GraphQL subscriptions
136140

137141
## Branches
138142
- `main` Demo app with infinite list, async storage persistor and optimistic updates
139143
- `simple-list` Demo app using a simple movies FlatList
140144
- `movies-list-optimistic-update` The movies list is optimistically updated after a movie mutation
145+
- `graphql-subscriptions` the movie details screen is updated with GraphQL subscriptions
141146

142147
## Notes
143148
- This app uses many auto-refetch and cache invalidation possibilities but you may have to select the ones you really need for your app in production.
@@ -147,4 +152,4 @@ To generate types and operations with GraphQL code generator (Hasura must be up)
147152
- No GraphQL API authentication and authorization have been implemented in this demo.
148153
- React Native Web support is experimental.
149154
- Console logs are verbose for demo purposes.
150-
- GraphQL subscriptions are not demonstrated in this app but [React Query can be used with web sockets](https://tkdodo.eu/blog/using-web-sockets-with-react-query).
155+
- More info about WebSocket support in this article [React Query can be used with web sockets](https://tkdodo.eu/blog/using-web-sockets-with-react-query).

0 commit comments

Comments
 (0)