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

feat(api): search on ModelQueries #4210

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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 MarlonJD force-pushed the feat/search-modelqueries branch from aefe93c to dc0b273 Compare December 4, 2023 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor GraphQL API Issues related to the API (GraphQL) Category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants