0

cant able to store values from super table field,need a correct format to do

Graphql


mutation saveEntry($superTable: [demoSuperTable_SuperTableBlockContainerInput] = {demoSuperTable_0: {id: "", rowField1: ""}}, $stSortOrder: [QueryArgument]) {
  save_testing_testing_Entry(
    demoSuperTable: {blocks: $superTable, sortOrder: $stSortOrder}
  ) {
    demoSuperTable {
      ... on demoSuperTable_BlockType {
        id
        rowField1
      }
    }
  }
}

Querying Variable

{
  "superTable": [
    {
      "demoSuperTable_0": {
        "id": 36,
        "rowField1": "demo"
      }
    }
  ],
  "stSortOrder": "new1"
}

output:

{
  "errors": [
    {
      "message": "Demo Super Table should contain at least 1 block.",
      "extensions": {[![enter image description here][1]][1]
        "category": "user"
      },...

enter image description here

1 Answer 1

0

since super table doesn't have block name like matrix and neo field. it required to points using block id. need modification in plugin code and try. refer following link for reference and its working https://github.com/verbb/super-table/issues/449

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.