def upsert(self, *args, **kwargs) -> Callable:

    async def to(value: Any) -> Any:

        async def fn(*_args, **_kwargs) -> Any:
            return value
        return (await self.get_behavior(insert=True, update=True)(fn=fn)(*args, **kwargs))
    return to
def upsert(self, *args, **kwargs) -> Callable:

    async def to(value: Any) -> Any:

        async def fn(*_args, **_kwargs) -> Any:
            return value
        return (await self.get_behavior(insert=True, update=True)(fn=fn)(*args, **kwargs))
    return to