Git Product home page Git Product logo

Comments (6)

ghostdogpr avatar ghostdogpr commented on June 18, 2024 4

I chose ZIO over Cats Effect because it supports explicit errors (no bifunctor in CE), environment and streams, as well as the overall simplicity of a concrete effect type over tagless final.

But it is completely possible that you wrap the main call (execute) the same way you wrap a Future, and you can write an instance of Schema for Monix Task. As long as you don't mind having both libraries in your classpath (ZIO and Monix), this is totally doable.

If there is interest, I can imagine having a caliban-cats or caliban-monix that does the wrapping work and provide what's needed.

from caliban.

ghostdogpr avatar ghostdogpr commented on June 18, 2024 3

Released 0.1.1 with the cats interop module. Happy people can thank @desbo 😄

from caliban.

ghostdogpr avatar ghostdogpr commented on June 18, 2024 2

Merged 2 related PRs:

  • #53 allows using the GraphQL class with cats-effect F instead of ZIO
  • #56 allows using Http4sAdapter with cats-effect F instead of ZIO

What's missing:

  • add an instance of Schema for F
  • add a documentation page that summarizes all of it and show a full example using Cats IO or Monix

I'll do a release once this is done 😄

from caliban.

domasx2 avatar domasx2 commented on June 18, 2024

Alright, I intend to give this a go next time we need a scala graphql microservice and see how it goes :) Thanks for the cool lib

from caliban.

He-Pin avatar He-Pin commented on June 18, 2024

When handling GraphQL's ExecutionResult/IO[ExecutionResult], ZIO feet more

from caliban.

hejfelix avatar hejfelix commented on June 18, 2024

+1 for caliban-cats. :)

from caliban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.