-
Notifications
You must be signed in to change notification settings - Fork 253
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 Request: Search and filter data with Amplify.API without custom GraphQL Document #4189
Comments
I just added #4210 for this issue, please let me know if it's good for you, thanks |
Hi @MarlonJD, thanks for sharing the proactive solution. It's unclear to me why you would need a separate |
Hi @Equartey, thanks. It's for If I use listTodos,
So |
@MarlonJD ah yeah I understand now. Thank you for the context. In the meantime, this query can be made using our advance workflows escape hatch. I'm guessing you already knew this, but calling it out to be sure. From the doc example you linked it could look something like this in dart: final document = '''query SearchStudentsByEmail {
searchStudents(filter: { name: { eq: "Rene Brandel" } }) {
items {
id
name
email
}
}
}''';
final req = GraphQLRequest<Student>(
document: document,
decodePath: 'searchStudents.items', // document title + .items
modelType: Student.classType); Thanks again for the contribution. I'll let you know if we have any more questions and updates. |
@Equartey yes I'm doing just like that. So this feature request is for avoid these long and custom codes, that's why I'm proposing this. BTW if you check the PR codes, please let me know what's your ideas about these, and I can change commit message and merge into 1 commit if it's necessary |
@MarlonJD Great, yeah I can see the value add for sure. I'll let you know if we want to combine them, thanks. |
I would like to add that the amplify flutter docs have a dedicated section for how to add search using the @searchable directive, but there is no easy way to access this on the flutter side. It seems like elasticsearch resources are being deployed in that case for no reason. Also that whole section has javascript examples instead of flutter/dart code which is just kinda sad. |
Description
Hello, on amplify-flutter there is no search option like ModelQueries.list, do we planning to add this?
I would like to try to add this if it's possible.
Query predicate operations for search will be one of these:
for example search operation can be like this example,
it can be build on the ModelQueries.list,
example ModelQueries.list was like this:
to
Categories
Steps to Reproduce
No response
Screenshots
No response
Platforms
Flutter Version
3.3.10
Amplify Flutter Version
0.6.10
Deployment Method
Amplify CLI
Schema
The text was updated successfully, but these errors were encountered: