Connecting object with its self
Options
![Prathyusha Chilagani](https://us.v-cdn.net/6037124/user_avatars/2712923.jpg)
Prathyusha Chilagani
Member ✭
Hello I am new here.
I wanted to connected a user table with its self. Basically, a user with an another user from the same table.
When I do so in the database, the input for the connection only takes one key, ie., the ID. Hence it takes just that for any API for CRUD operations.
[image.png]
It shows the drop down when I am adding, and takes user-ID alone. I wanted it to take a few more keys, like email and avatar maybe. and disable the others.
[image.png]
Is there a way to do it from database, so all keys show up when I am creating APIs, or am I to do it while creating API itself, add in input section. If that is the case, could you directed me how to go about.
Thank you,
Prathyusha
I wanted to connected a user table with its self. Basically, a user with an another user from the same table.
When I do so in the database, the input for the connection only takes one key, ie., the ID. Hence it takes just that for any API for CRUD operations.
[image.png]
It shows the drop down when I am adding, and takes user-ID alone. I wanted it to take a few more keys, like email and avatar maybe. and disable the others.
[image.png]
Is there a way to do it from database, so all keys show up when I am creating APIs, or am I to do it while creating API itself, add in input section. If that is the case, could you directed me how to go about.
Thank you,
Prathyusha
Comments
-
was the related to the other thread? A table reference is just the referenced ID but you can use Addons to transform the ID into the related data inside the API
-
Yes it is. I could go ahead and delete this to aviod any confusion?
-
it's all good. Just wanted to double check, thank you!
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