Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

AppSync Emulator - AWSEmail and AWSURL #159

Open
diegoTiscarenoWizeline opened this issue Jul 23, 2019 · 1 comment
Open

AppSync Emulator - AWSEmail and AWSURL #159

diegoTiscarenoWizeline opened this issue Jul 23, 2019 · 1 comment

Comments

@diegoTiscarenoWizeline
Copy link

I ran into an issue when using AWSEmail and AWSURL custom scalars. I added data in my schema that uses them but when trying to query the information I get the following error:

"message": "Unknown type \"AWSEmail\". Did you mean \"AWSDate\"?",

That seems weird considering that the scalars are added in schemaWrapper.js. The problem seems to be the name of the GraphQLScalarType as defined in the original package (@okgrow/graphql-scalars) which is EmailAddress.
I tried overwriting the name by adding the line

EmailAddress.name = 'AWSEmail';

Which apparently solves the problem. I'm not sure if that is a correct solution to this, so I'm just putting this info out here as an issue.

@lightsofapollo
Copy link
Contributor

🤔 weird I thought we had tests for this too... I will investigate. Thanks for reporting!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants