Toddle adds 'data' tag into hierarchy when parsing Directus API JSON

  • torinson99

    1 month ago

    Greetings. In a browser, a list of Articles from Directus API shows in the JSON hierarchy as: data < 0, 1, 2, 3, etc. but when I connect to this Directus API with Toddle, the list of articles shows up in the hierarchy within the Toddle API window as: data < data < 0,1,2,3,etc..

    So when I try to display these articles in a Snippet<Card with 'repeat' option, although the cards themselves repeat, the content within the cards (for example 'heading = article title') does not repeat.

    How can I get rid of this extra 'data' tag from the JSON API data hierarchy within Toddle, because it seems Directus' API is correct. Thanks in advance.
  • /attachments/1314137546032283701/1314161107417436202/CleanShot_2024-12-05_at_10.25.21.mp4

    Andreas Møller

    1 month ago

    Hey.

    You can just select the data. in the formula editor
  • torinson99

    1 month ago

    Thanks Andreas...got it to work. 👍
  • Andreas Møller

    1 month ago

    👍

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.