typesense / typesense-js

JavaScript / TypeScript client for Typesense
https://typesense.org/docs/api
Apache License 2.0
393 stars 74 forks source link

include_fields in Retrieve a document #184

Closed avi-agg closed 8 months ago

avi-agg commented 8 months ago

How can I set what fields to retrieve in

client.collections('companies').documents('124').retrieve()

jasonbosco commented 8 months ago

Typesense does not support include_fields in the GET document endpoint. It's only supported in the search and export document endpoints.

jasonbosco commented 8 months ago

I've created a feature request here: https://github.com/typesense/typesense/issues/1411

avi-agg commented 8 months ago

Thanks a lot for the update and adding it as a feature request!