AppDB Partial Update query on id not working

Anurag_Sharma
Anurag_Sharma ⚪️
edited January 4 in Apps

I am trying to do a partial update query for a document in AppDB following this link, https://developer.domo.com/docs/dev-studio-references/appdb

const payload = {

    "query": { "id": <document id> },

    "operation": {

     "$set": {

      "content.target": <value>

     }

    }

   }

  const updateUrl = `/domo/datastores/v1/collections/${collectionName}/documents/update`;


This returns with 0. No records updated.