Skip to content

Commit

Permalink
Move finch and monix examples to the 'cats-effect 2' section
Browse files Browse the repository at this point in the history
  • Loading branch information
iRevive committed Jul 31, 2021
1 parent 746cd6b commit d8a6663
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions vuepress/docs/docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
The [examples](https://github.com/ghostdogpr/caliban/tree/master/examples/) project in Github contains various examples:
- [GraphQL API exposed with http4s](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/http4s)
- [GraphQL API exposed with Akka HTTP](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/akkahttp)
- [GraphQL API exposed with finch](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/finch)
- [GraphQL API exposed with play](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/play)
- [GraphQL API exposed with zio-http](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/ziohttp)
- [GraphQL Client usage](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/client)
- [GraphQL Client integration with Laminext](https://github.com/ghostdogpr/caliban/tree/master/client-laminext/src/test/scala/caliban/client/laminext)
- [Optimization with ZQuery](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/optimizations)
- [Interop with Cats Effect](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/interop/cats)
- [Interop with Monix](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/interop/monix)
- [Interop with Tapir](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/tapir)
- [Apollo Federation usage](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/federation)
- [Schema Stitching usage](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/stitching)

#### Available only with cats-effect 2.x
- [Interop with Monix](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/interop/monix)
- [GraphQL API exposed with finch](https://github.com/ghostdogpr/caliban/tree/master/examples/src/main/scala/example/finch)

You may also check out [the repository](https://github.com/ghostdogpr/caliban-blog-series) accompanying my [blog series](https://medium.com/@ghostdogpr/graphql-in-scala-with-caliban-part-1-8ceb6099c3c2) on Caliban.
2 changes: 1 addition & 1 deletion vuepress/docs/docs/interop.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object ExampleCatsInterop extends IOApp {

You can find this example within the [examples](https://github.com/ghostdogpr/caliban/blob/master/examples/src/main/scala/example/interop/cats/ExampleCatsInterop.scala) project.

## Monix
## Monix (only with cats-effect 2.x)
You first need to import `caliban.interop.monix.implicits._` and have an implicit `zio.Runtime` in scope. Then a few helpers are available:

- the `GraphQL` object is enriched with `interpreterAsync`, a variant of `interpreter` that return a Monix `Task` instead of a `ZIO`.
Expand Down

0 comments on commit d8a6663

Please sign in to comment.