Connecting object with its self

Options
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 

Comments