apollographql / apollographql/apollo-tooling

Error: Unknown type: "AWSDateTime"

Open
#1,600 6 comments 0 reactions 0 assignees View on GitHub
🏓 waiting-response
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

I'm using AWS AppSync to write my graphql service.
AppSync supports more types out of the box like: AWSDateTime.
But in the apollo vscode plugin I get the following error:
`UnhandledPromiseRejectionWarning: Error: Unknown type: "AWSDateTime".`
Does this plugin not work with AWS or custom types?
Or is this a bug?

Im using version: 1.11.0
And my apollo config looks like this:
```javascript
module.exports = {
client: {
service: {
name: 'ProjectName',
url: 'AWS_APPSYNC_URL',
excludes: ['node_modules/**/*'],
includes: ['src/**/*.graphql'],
},
},
};
```

Contributor guide

Open the contributing guide

Research direction

Start with the Apollo VSCode plugin's schema handling and reproduce the error using the supplied Apollo config, the AWS AppSync service, and a src/**/*.graphql file containing AWSDateTime. Determine whether the plugin accepts AppSync or custom scalar types, and consider the issue done when the unknown-type error no longer occurs for the reported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, graphql
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.