Skip to content

Commit 9f4b168

Browse files
author
Edison Zhang
committed
[datastore]update query-where-and code example
1 parent 6f40b72 commit 9f4b168

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fragments/lib-v1/datastore/android/data-access/query-predicate-multiple-snippet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Amplify.DataStore.query(
2020

2121
```kotlin
2222
Amplify.DataStore.query(
23-
Post.class, Where.matches(Post.RATING.gt(4)
23+
Post::class.java, Where.matches(Post.RATING.gt(4)
2424
.and(Post.STATUS.eq(PostStatus.ACTIVE))
2525
),
2626
{ goodActivePosts ->

src/fragments/lib/datastore/android/data-access/query-predicate-multiple-snippet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Amplify.DataStore.query(
2020

2121
```kotlin
2222
Amplify.DataStore.query(
23-
Post.class, Where.matches(Post.RATING.gt(4)
23+
Post::class.java, Where.matches(Post.RATING.gt(4)
2424
.and(Post.STATUS.eq(PostStatus.ACTIVE))
2525
),
2626
{ goodActivePosts ->

0 commit comments

Comments
 (0)