Perhaps you could leverage transactions? This means both your Like document creation/deletion and the corresponding PostMetadata update can occur within a single transaction, ensuring consistency… transactions will add a bit of overhead, however. What’s the volume look like? How many likes/unlikes are there for each post? What’s the time period look like for likes / unlikes on a popular post?