[FR] - GraphQL access is not supported
aladrach opened this issue · 4 comments
aladrach commented
Describe the bug
We converted some one of our previous text fields, which was used in a Neo block. After converting and attempting to utilize the field's data via GraphQL, we receive the following error:
Error: String cannot represent value: instance of nystudio107\codefield\models\CodeData
To reproduce
Steps to reproduce the behaviour:
- Covert plain text field to Code field
- Try to call field via GraphQL
Versions
- Plugin version: 4.0.2
- Craft version: 4.3.1
khalwat commented
Ah yes, that makes sense. There's no type/resolver for it yet
aladrach commented
Ah, well that makes sense. Suppose this may be better suited for a feature request then haha.
khalwat commented
Implemented in
3.0.3 -> https://github.com/nystudio107/craft-code-field/releases/tag/3.0.3
4.0.3 -> https://github.com/nystudio107/craft-code-field/releases/tag/4.0.3
Docs updated to add a GraphQL example: