Closed MarcHartwig13 closed 2 years ago
I've made some updates to GraphQL in the next release. To get the fix early, change your verbb/super-table
requirement in composer.json
to:
"require": {
"verbb/super-table": "dev-craft-3#479fe94d25d00bc0b7921b338973c3dd13390532 as 2.4.1.2",
"...": "..."
}
Then run composer update
.
Let me know if there's still issues though!
Appreciate your quick response and turn around on this and #326!
Craft Version: 3.4.1 Super Table Verison: dev-craft-3#479fe94d25d00bc0b7921b338973c3dd13390532 as 2.4.1.2
Unfortunately updating to "verbb/super-table": "dev-craft-3#479fe94d25d00bc0b7921b338973c3dd13390532 as 2.4.1.2"
hasn't resolved my issue.
Ran migrate/all and project-config/sync
after updating to the dev version of Super Table. I tried:
text
and specific preparse field with the handle buttonParsed
Also cleared all my caches. These handles are also used in other matrix blocks within the matrix.randomTextField
(a handle I've never used before) and that field is unable to be pulled in through graphQLAll the fields save perfectly fine and the data remains. In graphQL Playground it shows the error Unable to query field 'randomTextfield' on type iconCard_BlockType
But I have a text field with the handle header
and that pulls in fine.
I can't seem to find a stack trace on this issue this time in any of the logs though. I could try recreating the entire Matrix but I'm hoping to avoid that. This might be a dumb question but could Super Table be pointing to an old/previous version of my matrix block for graphQL? And graphQL is stuck thinking I never created those fields/they don't exist? I'll be honest I don't know how the data from the DB gets connected/translated to graphQL enough to speak too well on it.
Thanks again for the help and let me know if I can provide anymore information that might help!
~*EDIT:** Just tried to add a text field to a different super table in a different matrix block and graphQL doesn't recognize the new field there either. Seems like it isn't picking up new fields created within the matrix.~
Sorry the above isn't true, I needed to refresh my graphQL Playground and it pulls the data correctly. Still cannot pull data from within the one specific super table in the specific matrix block. (sorry for all the edits just want to make sure I'm explaining things as best I can.)
My setup is Matrix > Matrix Block > Super Table > Text Field
Tried to pin this down further but couldn't find anything noticeable. All the fields in the project.yaml seemed fine.
My workaround was to delete the block and not try and use the same handle, something must be corrupt with that handle. Currently everything is working with a new handle. I'm wondering if this stems from me being on Super Table 2.3.3 while being on the 3.4-RC branches of Craft?
This should be fixed in 3.0.0-beta.3
Description
I'm running into an issue where graphQL doesn't return any data for random fields. The data saves in the CMS fine but graphQL acts as if it doesn't exist. The field types I'm trying to access are a text field and a preparse field. My field setup is
Matrix field > Super Table in block with other fields > text field/preparse field within super table
Here is my stack trace:
This is the part of my graphQL call:
I'm not sure if this is related or if I should open another issue for this but I also have an issue when creating fields in a super table and it thinks the handle is already being used. Once when I know I hadn't used the handle before and a couple other times when I had created a field, then decided I didn't need it and deleted it, and then realized I did need it and tried to recreate it.
My work around was to delete the entire matrix block and recreate everything. But this last time that didn't solve any issues.
Another thing that may be causing a conflict is we do have fields of the same handle in other matrix blocks within the same matrix.
Steps to reproduce
It's hard to list a definitive way to reproduce the issue because it seems to happen to random fields.
Additional info
I've updated both Craft and Super Table since running into this issue, so potentially things have changed. I can try to delete the block and recreate it again to see if it solves the issue?