You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To update records by criteria, documentation indicates below guidance. I just want to increase follower count of a specific user ( I have a custom user object)
But its missing important thing like where to add operation fields (i.e "inc": {"field_name": "value"})
As a flutter client this is what i have tried
var url = 'https://api.connectycube.com/data/UserDetail/by_criteria';
var headers = Map<String, String>();
headers['CB-Token'] = session.token;
headers['Content-Type'] = 'application/json';
var values = ...
var body = jsonEncode(values);
This is what the body is ==> "{"search_criteria":{"userId":4388899},"inc":{"userTotalFollowers":1}}
var response = await http.put(url, headers: headers, body: body);
But it does not update the field of the user.
The text was updated successfully, but these errors were encountered:
To update records by criteria, documentation indicates below guidance. I just want to increase follower count of a specific user ( I have a custom user object)
But its missing important thing like where to add operation fields (i.e "inc": {"field_name": "value"})
As a flutter client this is what i have tried
But it does not update the field of the user.
The text was updated successfully, but these errors were encountered: