You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@DanSnowcollection is actually not a parameter that's applicable to scoped API Keys. Instead, you want to set permissions for specific collections at the level of the parent API key.
Could you expand on your use case for expecting collection here?
Thanks for the explanation. My colleague told me that collection exists and it works here. So I thought it is just a mistake in the type defination.
Our use case is: We have a static site generator to generate multiple sites. And we used TypeSense as the search provider which stores all the articles across all the sites. We want to limit the search only to a specific site.
So I'm supposed to limit the collection in the parent API key and adding collection to scoped key parameter doesn't actually work. Did I understand correctly?
Description
I think the
collection
definition is probably missing herehttps://github.com/typesense/typesense-js/blob/master/src/Typesense/Keys.ts#L12
Steps to reproduce
Expected Behavior
Can use
collection
to generate a scoped search keyActual Behavior
Type error
Metadata
Typsense Version:
OS:
The text was updated successfully, but these errors were encountered: