Data from query wont show in results

Database & APIs
Resolved

I am trying to dynamically add children to a list view using an API call and, seemingly, everything is working, except when I run the test, the content shown is the default values and not from the JSON path. I have queried and added children everywhere I can think of and in all shapes and forms, yet I just cannot get it to work the right way, so I’m reaching out hoping you guys can help me out.

What have you tried so far?

A bit more context:

  • The app is a filter for restaurants (yet another one).

  • I’m working on getting the search bar functionality to work.

  • The list view should display the results of the search – filtered by a city ID (variable called city_id)

  • I am using Buildship on the backend with Typesense, inputting city ID (set in App State from CityPicker component) and SearchInput (text from search bar).

  • So BuildShip gets the city ID and search and provides the correct information from which I have created predefined JSON paths.

  • So when I run the test in the API settings, I get the correct information.

I just cannot figure out how to get it shown in the list view.

So far, I can get it to show the correct number of restaurants for the current test data based on the city ID, but not the content.

Current test data is just four fake restaurants

CityID = 17 – “København & Frederiksberg”

  • 1) Mojoe Kitchen & Bar

  • 2) Den Franske Café

CityID = 14 – “Rødovre”

  • 3) Mojoe Kitchen & Bar (duplicated to ensure the city ID filter provides the right information, i.e. I don’t get shown the same restaurant twice when searching for “Mojoe”.

  • 4) Rejsekortet

I have really tried querying this in all ways I can imagine. Using the predefined JSON paths and writing the code. I obviously am missing something, since I’m sure you guys can find a solution, but I’m lost in it and have spent a few days trying now. I’d love some help to be able to move on.

So anything is greatly appreciated!

Let me know if you have any questions!

Did you check FlutterFlow's Documentation for this topic?
Yes
1
2 replies