Skip to content

Commit 7b87fe5

Browse files
edisooonEdison Zhang
andauthored
fix(datastore): typo in datastore query with multiple predicates code example (#8003)
* [datastore]update query-where-or code example * [datastore]update query-where-and code example --------- Co-authored-by: Edison Zhang <edisonzz@amazon.com>
1 parent 9bc5cd1 commit 7b87fe5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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-v1/datastore/android/data-access/query-predicate-or-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(
23+
Post::class.java, Where.matches(
2424
Post.RATING.gt(4)
2525
.or(Post.STATUS.eq(PostStatus.ACTIVE))
2626
),

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 ->

src/fragments/lib/datastore/android/data-access/query-predicate-or-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(
23+
Post::class.java, Where.matches(
2424
Post.RATING.gt(4)
2525
.or(Post.STATUS.eq(PostStatus.ACTIVE))
2626
),

0 commit comments

Comments
 (0)