https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
j

Jared Rieger

02/17/2022, 8:57 AM
Hey all, I’m trying to test locally an extension on a type that is owned by another service. In my local playground I’m trying to use this query to be able to test the local extension
Copy code
query {
  _entities(representations: [{ __typename: Place, id: "some-id" }]) {
    ... on Place {
      people {
        name
      }
    }
  }
}
however this responds with a
"Unable to resolve federated type, representation={__typename=Store, id=kl;fdjas}"
error. Am I going about this the right way? Is there a way to test locally extensions on a type without somehow spinning up an Apollo server with the other services?
d

Dariusz Kuc

02/17/2022, 5:28 PM
yes you should be able to send those queries (
_entities
query would be sent the federated gateway) sounds like an issue with the representation array?
j

Jared Rieger

02/21/2022, 5:00 PM
forgot to add the resolver to schema generation hooks… 🤦
14 Views