Closed
Description
Describe the bug
When defining a custom query, if you define the getType
value as () => [String]
the custom query ends up with a String return type in the schema.
To Reproduce
graphweaverMetadata.addQuery({
name: 'test',
getType: () => [String],
resolver: () => ['a', 'b'],
});
Expected behavior
Expected to be able to query { test }
and get back ["a", "b"]
in the result.
Actual behavior
test
is correctly created in the schema, but the return type is generated as String
instead of String[]
.
Metadata
Metadata
Assignees
Labels
No labels