Skip to content

Commit

Permalink
Add missing doc about subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdogpr committed May 18, 2024
1 parent b18d681 commit 2c2106e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vuepress/docs/docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,12 @@ val api = graphQL[MyEnv, Queries, Unit, Unit](RootResolver(queries))
// val api = graphQL(RootResolver(queries)) // it will infer MyEnv thanks to the instance above
```

## Subscriptions

All the fields of the subscription root case class MUST return `ZStream` or `? => ZStream` objects.

The [cats and monix interop modules](interop.md) also let you use fs2 `Stream` and monix `Observable` respectively.

## Annotations

Caliban supports a few annotations to enrich data types:
Expand Down

0 comments on commit 2c2106e

Please sign in to comment.