Any possibility to get metaData from DocumentChange object

hi folks ,
Im trying to get the metaData from Mutation object, is there any way to get all the metaData (i.e expiry, rev , type ) from this object.

is there any way to differentiate between mutation in metaData and data?

thanks in advance

I don’t understand. Please can you explain this question in more detail?

Mutation has an expiry() method for returning the expiry. The flags() method return has type hints; it’s a bitfield encoded as an integer. If you want to know if a document is JSON, the best way is to try to parse it, since the JSON flag is not guaranteed to be set.

By “rev”, do you mean the DCP sequence number? You can get that from DocumentChange.offset().getSeqno().

Thanks,
David