graphdoc icon indicating copy to clipboard operation
graphdoc copied to clipboard

I get the following error: Type "AWSJSON" not found in document.

Open kodai305 opened this issue 2 years ago • 3 comments

We are trying to create a GraphQL API with AWS AppSync. When we try to create the documentation for that API in graphdoc, we get Type "AWSJSON" not found in document. When I try to create the API documentation in graphdoc, I get the error "Type "AWSJSON" not found in document.

The command I ran was as follows graphdoc -s . /schema.graphql -o . /doc/schema

Is it possible to create a document if it contains a type like "AWSJSON"?

kodai305 avatar Oct 01 '21 08:10 kodai305

I have the same issue "AWSDate"

mafakuti avatar Oct 13 '21 08:10 mafakuti

I have the same issue "AWSDate"

I was able to solve it by using the "-e" option

kodai305 avatar Oct 13 '21 10:10 kodai305

A not so ideal quick fix here would be to declare AWSJON as a scalar in your schema.

Just add scalar AWSJSON to the graphql file

raphaelfavier avatar Sep 29 '22 11:09 raphaelfavier