Pymongo - UnhashableTypeError

Hello,

I am relatively new to Streamlit and not so advanced in python skills :slight_smile:
I use “multi-page” session state code to build a website with a mongodb connection.

it works except for that warning :

My snippet :

and i store connection like that
state.connection = get_database_client()

I think i understand why but do not know eaxctly what to do with pymongo.auth._Cache…

Your help is welcome :smiley:

Thx