amplify-category-api
amplify-category-api copied to clipboard
Cannot use enums to sort @searchable search results
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
11.0.4
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
None
Describe the bug
I cannot use enums to sort my search results using graphql, and they are not beeing generated in to he SortableFields.
Expected behavior
Use enums to sort, like using other types of fields.
Reproduction steps
- Create a type with @searchable
- Add a field with type enum
- Push some data into Opensearch
- Using the seach query to search for some of the data
- Try to use the enum field to sort
Project Identifier
No response
Log output
# Put your logs below this line
Additional information
No response
Before submitting, please confirm:
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.