Hi, I have a question, how do you use parameters i...
# community-help
g
Hi, I have a question, how do you use parameters in document export? Like normal export
client.collections('companies').documents().export()
and it says you can use exclude fields. if I try
client.collections('companies').documents().export({exclude_fields: "createdDate"})
it doesn't seem to exclude the createdDate.
k
👋 What language are you using?
g
JavaScript
k
🤔 The JS client does seem to send the parameters through: https://github.com/typesense/typesense-js/blob/master/src/Typesense/Documents.js#L76 Is it possible for you to debug to see what request is generated by stepping into that function?
g
let me try and see
ok I went through and the url generated seems correct. http://<server>/collections/my_collection_name/documents/export?exclude_fields=createdDate
k
Yes, that looks correct. Can you check that you are using the correct version of Typesense?
This feature was added only in 0.21
You can hit the
/debug
endpoint to check the version of a running server.
g
ah ok yeah im on 0.20 🙂 ok thanks
k
yw