apollographql / federation

🌐  Build and scale a single data graph across multiple services with Apollo's federation gateway.
https://apollographql.com/docs/federation/
Other
661 stars 248 forks source link

Can't federate AWS Appsync if there is a custom type `AWSDateTime` #2607

Open zhaoyi0113 opened 1 year ago

zhaoyi0113 commented 1 year ago

I am trying to use Apollo Federation to connect subgraph from AWS Appsync. When I start federation I got this error: UNKNOWN: Unknown type AWSDateTime. It seems Federation doesn't recognise AWS Scalar type AWSDateTime. Is there a way to extend Apollo federation to support Appsync types?

pcmanus commented 1 year ago

Hi. Federation is no tailor made support for appsync per-se, but you can declare whichever scalar you want in our subgraphs, so I'd assume that you'd just need to add scalar AWSDateTime to one of your subgraph (plus the definition of any other type appsync seems to require; I'm not familiar with appsync at all btw).