Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kyri-petrou committed Jul 1, 2024
1 parent c147222 commit afc4bc1
Showing 1 changed file with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,20 @@ object FederationTracingSpec extends ZIOSpecDefault {

case class Queries(me: ZQuery[Any, Nothing, User])

def api(excludePureFields: Boolean) =
graphQL(
RootResolver(
Queries(
me = ZQuery.succeed(
User(
"abc123",
ZIO.sleep(100.millis) as Name("my_first", Some("my_last")),
age = 42,
parents = ZIO.succeed(List(Parent("my_parent")))
)
def api(excludePureFields: Boolean) = graphQL(
RootResolver(
Queries(
me = ZQuery.succeed(
User(
"abc123",
ZIO.sleep(100.millis) as Name("my_first", Some("my_last")),
age = 42,
parents = ZIO.succeed(List(Parent("my_parent")))
)
)
)
) @@ ApolloFederatedTracing.wrapper(excludePureFields)
)
) @@ ApolloFederatedTracing.wrapper(excludePureFields)

val query = gqldoc("query { me { id username { first, family: last } parents { name } age } }")
val body = ObjectValue(
Expand Down

0 comments on commit afc4bc1

Please sign in to comment.