Questions tagged [caliban]

Caliban is a Functional GraphQL backend in Scala using ZIO.

For Details see https://ghostdogpr.github.io/caliban/

5 questions
1
vote
0 answers

Caliban federation with scala 3

There is no caliban.federation for scala 3 yet. My question is what is a correct way to use it along with scala 3 libraries? For now I have such a dependencies in my build.sbt: lazy val `bookings` = project .in(file(".")) .settings( …
1
vote
1 answer

MongoDB Scala driver. How to update only changed document's fields from the case class object

I have the following case class: @GQLDirective(federation.Key("User Config")) case class UserConfig( userId: Int, personalGroup: Option[PersonalGroup] = None, accountGroup:…
0
votes
1 answer

Caliban complains it can't create a schema (ZIO 2, Scala 3)

This is my model class: final case class Organization( id: UUID, name: String ) My Queries class looks like this: case class Queries( organizations: URIO[DatabaseService, List[Organization]] ) And I have a service that looks like…
Isvara
  • 3,403
  • 1
  • 28
  • 42
0
votes
1 answer

Scala integration tests for Caliban GraphQL subscriptions

We have a Caliban GraphQL application, using it with Play framework. It is well covered with integration tests for queries and mutations, now we're about to add some integration tests for subscriptions and wondering how to do it correctly. For…
Oleg Shankovskyi
  • 131
  • 1
  • 13
0
votes
1 answer

Is it possible to use GraphQLRequest for a client in Caliban?

I wanted to test my Caliban Http4s Webservice. In Http4sAdapter it uses GraphQLRequest to model a Request Body. case class GraphQLRequest( query: String, operationName: Option[String], variables: Option[Map[String, InputValue]]) ... query …
pme
  • 14,156
  • 3
  • 52
  • 95