Problem with Table Reference Using an Object Array After APIs Auto Created
I’m following this: to have a table reference to another table to use an object array, but I did it after the APIs were automatically created and if I add the field after, the API is to type text not integer for the id and I can’t change it. Please see below. Does this make sense? How can I fix this?https://docs.xano.com/database/database-relationships
Answers
-
I recommend to not use the linked inputs if you need more control on them. I that case it's better to add the inputs manually one by one choosing the right type and presets for each of them.
-
I'm not really understanding the answer, sorry.
-
Here's a full explanation of the problem
-
@Dave Lundvall the
trip_type
table you are linking to at 3:00 has a texttype
field, so Xano is adding the input type astext
correctly, and because it is linked, you cannot change its type.Maybe you aren't linking the right table, or maybe the
trip_type
table doesn't have the fields you need.If you decide to link inputs to tables you won't have the possibility to change their types because the types are inferred from the table fields linked.
I general, i avoid using linked inputs. I prefer to add inputs manually without linking them to other tables. There is no need to do so.
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