Pyspark MongoAtlas connector invalid connection string

Hello, i’m having problems connecting to a mongodb atlas serverless instance, i downloaded the spark connector from the repo and updated a jar to my Azure Synapse Spark Pool instance, trying to connect with this code snippet:

query = ("mongodb")
        .option('spark.mongodb.connection.uri', 'mongodb+srv://')
    	.option('spark.mongodb.database', 'test') \
    	.option('spark.mongodb.collection', 'test4') \

But it says

Invalid connection string: ‘mongodb+srv:/’
Caused by: com.mongodb.MongoConfigurationException: A TXT record is only permitted to contain the keys [authsource, replicaset], but the TXT record for ‘’ contains the keys [loadbalanced, authsource]

What does this mean? it seems the url is wrong but in other snippets i have seen on the forums it seems to be well specified.

My versions are:
spark: 3.2.2+
python: 3.8+