Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit d3f00ad

Browse files
authored
[Caliban] Use a function instead of effect for greet (#311)
1 parent 330218c commit d3f00ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/caliban/src/main/scala/Api.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ object ServiceSchema extends SchemaDerivation[Service]
99

1010
case class Query(
1111
posts: RIO[Service, List[Post]],
12-
greet: UIO[String] = ZIO.succeed("Hello World!")
12+
greet: () => String = () => "Hello World!"
1313
) derives ServiceSchema.SemiAuto
1414

1515
case class User(

0 commit comments

Comments
 (0)