:wave: Hi everyone! I am getting a error of ```Typ...
# community-help
a
👋 Hi everyone! I am getting a error of
Copy code
TypeError("'Synonyms' object is not callable")
when I do something like this
Copy code
client.collections[args.name].synonyms().upsert('smart-phone-synonyms', synonym)
Can someone help?
j
@Albert Marrero I'm guessing this is the JS client? If so, the syntax is:
Copy code
client.collections(args.name).synonyms().upsert('smart-phone-synonyms', synonym)
a
It is a python client, I did the follow and it worked. don't know if it is right.
Copy code
client.collections(args.name).synonyms.upsert('smart-phone-synonyms', synonym)
j
Ah yes, it's
()
for the Python client as well
a
that didn't work, i get the error TypeError("'Synonyms' object is not callable")
j
It's
synonyms.
not
synonyms().