header = {"Accept": "application/json", "apiKey": api_key}
data = {"dataSource": "Cluster0", "database": "CrownStudios", "collection": "BANS", "filter": {"text": "These are the stored banned ids for Low Poly FPS!"}, "update": {"$pull": {"bans": {1425085558}}}}
r = requests.post(data_api, json=data, headers=header)
print(r.json())
Whenever i used $pullAll, my code worked, but had no effect (1425085558 wasnt deleted from the array "bans") When i use $pull, it gives me this error
TypeError: Object of type set is not JSON serializable
But i never specified any set?