Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdogpr committed Jul 3, 2024
1 parent 92e8334 commit 57f3207
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vuepress/docs/docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,7 @@ val api = graphQL[MyEnv, Queries, Unit, Unit](RootResolver(queries))
When using the `derives` syntax in Scala 3, you need to create an object extending `caliban.schema.SchemaDerivation[R]` and use the `SemiAuto` method to generate the schema.
```scala
object customSchema extends SchemaDerivation[MyEnv]
case class Queries(characters: Task[List[Character]],
character: CharacterName => RIO[Console, Character]) derives customSchema.SemiAuto
case class Queries(test: RIO[MyEnv, List[Int]]) derives customSchema.SemiAuto
```

## Subscriptions
Expand Down

0 comments on commit 57f3207

Please sign in to comment.