I read this documentation: https://docs.amplify.aws/cli-legacy/graphql-transformer/searchable/#definition But how to impliment the query in android studio using java.What are the methods of Amplify to get search query?
Amplify.DataStore.query(
Product.class,
items -> {
while (items.hasNext()) {
Product item = items.next();
Log.i("Amplify", "Id " + item.getId());
}
},
failure -> Log.e("Amplify", "Could not query DataStore", failure)
);
You can check full doc here https://docs.amplify.aws/lib/datastore/data-access/q/platform/android/#create-and-update
And some examples here https://github.com/enlearacademy/chatme-android-amplify https://aws.amazon.com/es/getting-started/hands-on/build-android-app-amplify/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.