UnsafeApi

caliban.quick.`package`.UnsafeApi
final class UnsafeApi[R](interpreter: GraphQLInterpreter[R, Any], executionConfig: ExecutionConfiguration)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def configure(cfg: ExecutionConfiguration): UnsafeApi[R]
def configureWith(cfg: ExecutionConfiguration => ExecutionConfiguration): UnsafeApi[R]
def provideLayer(layer: ZLayer[Any, Any, R]): UnsafeApi[Any]
def provideSomeLayer[R0](layer: ZLayer[R0, Any, R])(implicit tag: Tag[R]): UnsafeApi[R0]
def runServer(port: Int, apiPath: String, graphiqlPath: Option[String], uploadPath: Option[String])(implicit trace: Trace, ev: Any =:= R): Unit

Convenience method for impurely running the server.

Convenience method for impurely running the server.

Useful for scripts / demos / showing off Caliban to your colleagues etc.

Note that in order to call this method, you need to provide all dependencies required by the GraphQL environment. You can do that by passing a ZLayer to provideLayer.

Attributes