Scenario: I want to update an field in my collection for a specific user when this function is called. I am able to query my collection with the user email and write to the collection with the SAME data.
How do I get the user info, modify a field (step6) and write it back?
I’ve read somewhere I need to have all values for the row otherwise they are blanked out, so how would I take the result of RESULTS and store them into a variable to then write back?
export function put_myFunction(request) {
let options = {
“headers”: {
“Content-Type”: “application/json”
}
};
let UserEmail = request.path[0];
Slight modification to my ask, since this field is not set on the user until this function is called, how would I add to the JSON so I can write it to the collection?