(self, son, collection)
return transformed
Move _id to the front if it's there.
Move _id to the front if it's there.
Move _id to the front if it s there .
def transform_incoming(self, son, collection):
        """Move _id to the front if it's there.
        """
        if not "_id" in son:
            return son
        transformed = SON({"_id": son["_id"]})
        transformed.update(son)
        return transformed
def transform_incoming ( self , son , collection ) : if not "_id" in son : return son transformed = SON ( { "_id" : son [ "_id" ] } ) transformed . update ( son ) return transformed