System Information
- v4:
- Windows:
- Postgres:
- 16:
So I have a api in [Preformatted text](http://localhost:1337/api/users)
contain user and in every user it have a relation of a profile. For example if I get a single user in postman it show result
[
{
"id": 45,
"username": "test",
"email": "test@gmail.com",
"provider": "local",
"confirmed": true,
"blocked": false,
"createdAt": "2022-07-18T08:50:43.642Z",
"updatedAt": "2022-07-18T08:50:43.642Z",
"profile": null
}
]
As you can see in profile it get null value but when I tried to post a new profile in profile api using this [Preformatted text](http://localhost:1337/api/profiles?populate=*)
with a body request of json
{
"data" : {
"name": "fgh",
"address": "jksdjkdjs",
"phone": "345345"
}
}
It worked and show the result of
{
"data": {
"id": 10,
"attributes": {
"name": "fgh",
"address": "jksdjkdjs",
"phone": 345345,
"createdAt": "2022-08-05T13:37:10.282Z",
"updatedAt": "2022-08-05T13:37:10.282Z",
"publishedAt": "2022-08-05T13:37:10.281Z",
"email": {
"data": null
}
}
},
"meta": {}
}
but how We can post the relation of the user or connect existing email in api user to api profile?.
Thanks.