Closed logan-anderson closed 3 years ago
When using the number or text type an error occurs.
number
text
Number or text should not be in the types or should be supported
somewhere in your schema.ts add this
type: "number"
or
type: "text"
When querieing the data you will get the following error
Error: Unable to fetch, errors: Unknown field type number
Error: Unable to fetch, errors: Unknown field type text
as a fix I did this
{ type: "string", name: "heading", label: "heading", ui: { component: "number", }, },
and to fix text I changed it to type: "string".
type: "string"
I would expect that the these types should be supported or they should not appear in the types of unstable_defineSchema
unstable_defineSchema
- Browser: - OS: - Node: - npm:
No response
Is there an existing issue for this?
Current Behavior
When using the
number
ortext
type an error occurs.Expected Behavior
Number or text should not be in the types or should be supported
Steps To Reproduce
somewhere in your schema.ts add this
or
When querieing the data you will get the following error
or
as a fix I did this
and to fix
text
I changed it totype: "string"
.I would expect that the these types should be supported or they should not appear in the types of
unstable_defineSchema
Environment
Your Schema
No response
Your GraphQL Query
No response
Anything else?
No response