Where the unpublished object's data are stored and how to filter it

I created an object and just saved it (not published), when I refresh the page typed data are in the object but the database shows only null for that object. It’s available in the respective table only if I publish.

I try to filter(searching option - Pimcore admin panel) the select option(attribute in my object) in my object is null and filter result also not correct for object which is not published.

I want the filter the unpublished object from pimcore, using pimcore default search - filter options
Help me…

saved/unpublished object’s data saved in versions directory. Path - var/versions/object

$versions = $currentObject->getVersions();