Filtering record query through json table content
Options
![Lukasz Kwiatkowski](https://us.v-cdn.net/6037124/user_avatars/2118965.jpg)
Lukasz Kwiatkowski
Member ✭
It seems like Xano does not "see" json content e.g. a column named Summary storing the following json:
{'type': 'swim','time': 1800}, cannot be filtered by e.g. Summary.type equals swim
Is is a matter of syntax or currently not possible?
An obvious solution is to fetch data for filtering params in a separate column but this does not seems very scalable hence my questions if I can filter with json directly.
{'type': 'swim','time': 1800}, cannot be filtered by e.g. Summary.type equals swim
Is is a matter of syntax or currently not possible?
An obvious solution is to fetch data for filtering params in a separate column but this does not seems very scalable hence my questions if I can filter with json directly.
Comments
-
I made this video to answer a similar question - does it help?: https://www.loom.com/share/335e6fe4e5b6438ba5d63b925346c35e
-
thanks Ray yeah that's helpful, however I want to use Xano pagination directly on the frontend and besides I don't wanna front all the data first, it is a huge data set so I actually want to filter it on the query level
-
Got it! Maybe has an idea for you?
-
- you should be able to filter directly on the JSON. JSON fields don't have defined schema within it, but you can still use dot notation on it. Make sure to start with selecting DB table name and field name. Then you can add dot notation for the nested field within the JSON data type
-
is absolutely correct. I made a video to demo this particular use case that you might find helpful, https://www.loom.com/share/945e7387ec70429490dd999452077928
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback