Describe the bug
"Unsupported type" error raises on the type generation when using custom types on a Map on the schema.graphql.
It also happens on the generation of types when importing an interface with custom types on a Map.
Please provide the steps to reproduce and if possible a minimal demo of the problem.
- Define an interface like:
type Module {
getMetadata: Metadata!
}
type Metadata {
tokens: Map! @annotate(type: "Map<String!, [Token!]!>!")
}
type Token {
address: String!
}
- Build and deploy the interface
- Import the interface into a module as usual, and implement
type Module implements Interface_Module {}
- Generate types
yarn codegen
Expected behavior
Process should complete as usual and the types should be created inside src/wrap
Screenshots / logs
...
✅ Manifest loaded from ./src/__tests__/types/polywrap.app.yaml
🔄 Generate types
❌ Failed to generate types: Error: Unsupported type Token
Error: Unsupported type Token
Relevant environment details:
Additional context
The error doesn't happen when instead of a custom type, a primitive one is used, like String.
Describe the bug
"Unsupported type" error raises on the type generation when using custom types on a Map on the
schema.graphql.It also happens on the generation of types when importing an interface with custom types on a Map.
Please provide the steps to reproduce and if possible a minimal demo of the problem.
type Module implements Interface_Module {}yarn codegenExpected behavior
Process should complete as usual and the types should be created inside
src/wrapScreenshots / logs
Relevant environment details:
Additional context
The error doesn't happen when instead of a custom type, a primitive one is used, like String.