Start a new topic

metadata Comparison is not well

I am using javascript cloud metadata { "id":"001" "name":"def" } response.metadata.id Is this data primitive? Comparison is not well if(response.metadata.id==="001") Please

Could you send us your target collection id or your target id?

Did you check/log the result of your variable 'response' - that might help?

Just a quick note: The metadata value is a JSON object. So it is up to you what you store in there. If you store a string you retrieve a string, if you store a number you retrieve a number.

Login or Signup to post a comment