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

Feature: search in ModelQueries #4207

Closed

Conversation

MarlonJD
Copy link
Contributor

@MarlonJD MarlonJD commented Dec 4, 2023

Issue:
#4189

Description of changes:
I created ModelQueries.search which based on ModelQueries.list, it's the same with .list except where operations, please check if it's looks good for you, I only added matchPhrasePrefix as a operation, I noted as /// It's only for GraphQL API with Amplify.API.query()

There are DataStore operations like QuerySortBy and it's not a creating any issue that only using Amplify.API users. So I just added matchPhrasePrefix as a QueryPredicateOperation.

If it's looks good, I can add other operations using on search in GraphQL. These are: matchPhrase, match, multiMatch, ne, range, regexp, eq, exists, gt, gte, lt, lte, wildcard

but I think it's already enough with matchPhrasePrefix.

@MarlonJD
Copy link
Contributor Author

MarlonJD commented Dec 4, 2023

I created new pr for tests fails, I cloned and made changes and run aft run test:unit:flutter #4210

@MarlonJD MarlonJD closed this Dec 4, 2023
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

Successfully merging this pull request may close these issues.

1 participant