flamelink / gatsby-source-flamelink

Gatsby source plugin for Flamelink
MIT License
8 stars 9 forks source link

Relational inside repeater not populated #46

Open ajimenezdev opened 3 years ago

ajimenezdev commented 3 years ago

I have a data structure where I have a repeater that contains some values and one of them is a relational to a different object.

When the relational is part of the main object, I'm getting its data within the query, but not for the relational query like this:

query MyQuery {
  exampleContent() {
    nodes {
      id
      title
      rows {
        id
        flag
        relational {
          foo
          bar
        }
      }
    }
  }
}

The result will give an error because it doesn't have the relational content populated

But if the relational is not inside the repeater and on the main object is working

query MyQuery {
  exampleContent() {
    nodes {
      id
      title
      relational {
        foo
         bar
      }
    }
  }
}
gitdubz commented 3 years ago

@ajimenezdev can you update to the latest version 3.0.3 and see if the issue is resolved for you please?

ajimenezdev commented 3 years ago

@gitdubz Thanks for your quick response

I have upgraded but the results are the same as before. Let me show you some screenshots if it helps. If I have time over the weekend I can try to look at the source code as well.

image

If I check on internal > content I can see how the content element is there, but looks to not be populated as an item image

And if I check on this other property I can see all the items are somehow inside there, but not available as a list image

Let me know if you need me to check anything else