Skip to content

Commit

Permalink
Support schema coordinates. Adds enable defer to template
Browse files Browse the repository at this point in the history
  • Loading branch information
dthyresson committed Oct 23, 2023
1 parent 5332b66 commit 561b2ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/docs/realtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,13 @@ You can now remove the GraphQL handler function that resides in `api/functions/g
By default, RedwoodJS realtime configures an in-memory store for the Pub Sub client used with subscriptions and live query invalidation.

Realtime supports in-memory and Redis stores:

- In-memory stores are useful for development and testing.
- Redis stores are useful for production.

Configure a Redis store in:
To enable defer and streaming, set `enableDeferStream` to true.

Configure a Redis store and defer and stream in:

```ts
// api/lib/realtime.ts
Expand Down Expand Up @@ -190,6 +193,8 @@ export const realtime: RedwoodRealtimeOptions = {
// if using a Redis store
// store: { redis: { publishClient, subscribeClient } },
},
// To enable defer and streaming, set to true.
// enableDeferStream: true,
}
```

Expand All @@ -214,9 +219,6 @@ When the query is: `auctions: [Auction!]! @requireAuth`:

* `"Query.auctions"`




## Subscriptions

RedwoodJS has a first-class developer experience for GraphQL subscriptions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ export const realtime: RedwoodRealtimeOptions = {
// if using a Redis store
// store: { redis: { publishClient, subscribeClient } },
},
// To enable defer and streaming, set to true.
// enableDeferStream: true,
}

0 comments on commit 561b2ab

Please sign in to comment.