def in_db(self):
        """Whether the document has been inserted into the database."""
        # pylint: disable=no-member
        return self.id is not None
Whether the document has been inserted into the database.
fiftyone/core/odm/document.py