From 74a266eea5251780793dfa9733fbfdd92b27376a Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 2 Feb 2025 18:34:09 +0800 Subject: [PATCH] Attempt to fix compile --- .../caliban/federation/v2x/FederationV2Spec.scala | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/federation/src/test/scala/caliban/federation/v2x/FederationV2Spec.scala b/federation/src/test/scala/caliban/federation/v2x/FederationV2Spec.scala index c2dd8bb32..410384764 100644 --- a/federation/src/test/scala/caliban/federation/v2x/FederationV2Spec.scala +++ b/federation/src/test/scala/caliban/federation/v2x/FederationV2Spec.scala @@ -23,13 +23,13 @@ object FederationV2Spec extends ZIOSpecDefault { @GQLKey("id") @GQLShareable - case class Entity( + case class User( id: UUID ) case class Query( hello: String, - entity: Entity + user: User ) } @@ -251,19 +251,18 @@ object FederationV2Spec extends ZIOSpecDefault { }, test("renderer renders the schema including the extensions") { - import caliban.federation.v2_3._ - import SchemaWithEntity.{ Query, Entity } + import SchemaWithEntity.{ Query, User } val api = graphQL( RootResolver( - Query(hello = "Hello World!", entity = Entity(UUID.randomUUID())) + Query(hello = "Hello World!", user = User(UUID.randomUUID())) ) ) assertTrue( - renderFederatedCompact( + caliban.federation.v2_3.renderFederatedCompact( api - ) == """schema@link(url:"https://specs.apollo.dev/federation/v2.3",import:["@key","@requires","@provides","@external","@shareable","@tag","@inaccessible","@override","@extends","@composeDirective","@interfaceObject"]){query:Query}type Entity@key(fields:"id")@shareable{id:ID!}type Query{hello:String! entity:Entity!}""" + ) == """schema@link(url:"https://specs.apollo.dev/federation/v2.3",import:["@key","@requires","@provides","@external","@shareable","@tag","@inaccessible","@override","@extends","@composeDirective","@interfaceObject"]){query:Query}type Query{hello:String! user:User!}type User@key(fields:"id")@shareable{id:ID!}""" ) }