Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdvancedSearch: Hide indexed properties from the shop-api #10

Open
Draykee opened this issue Mar 16, 2023 · 0 comments
Open

AdvancedSearch: Hide indexed properties from the shop-api #10

Draykee opened this issue Mar 16, 2023 · 0 comments

Comments

@Draykee
Copy link

Draykee commented Mar 16, 2023

This feature request is based on this issue for elasticsearch: vendure-ecommerce/vendure#1181

Is your feature request related to a problem? Please describe.
I want to map and search for some custom products properties without exposing the exact value to the shop-api api.

Usecases:

  • A hidden rank/weight that is applied to promote some products
  • A hidden product owner id (I never want to expose user ids)
  • Exact product locations

Describe the solution you'd like
Extend the custom mapping type with a new field:

type CustomMappingDefinition<Args extends any[], T extends CustomMappingTypes, R> = {
    public?: boolean; // **NEW** ( should default to true )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant