Skip to content

Commit e94c252

Browse files
authored
(DOCSP-27197): Rename 'task' to 'item' in RQL examples (#2646)
## Pull Request Info Rename `task` to `item` in RQL examples and generated code samples ### Jira - https://jira.mongodb.org/browse/DOCSP-27197 ### Staged Changes - [Realm Query Language](https://docs-mongodbcom-staging.corp.mongodb.com/realm/docsworker-xlarge/docsp-27197-rename-task-rql/realm-query-language/) ### Reminder Checklist If your PR modifies the docs, you might need to also update some corresponding pages. Check if completed or N/A. - [x] Create Jira ticket for corresponding docs-app-services update(s), if any - [x] Checked/updated Admin API - [x] Checked/updated CLI reference ### Review Guidelines [REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md)
1 parent e95ac17 commit e94c252

22 files changed

+206
-232
lines changed

examples/dart/test/task_project_models_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ part 'task_project_models_test.g.dart'; // :remove:
88
// :uncomment-end:
99

1010
@RealmModel()
11-
class _Task {
11+
class _Item {
1212
@MapTo("_id")
1313
@PrimaryKey()
1414
late ObjectId id;
@@ -27,7 +27,7 @@ class _Project {
2727
late ObjectId id;
2828

2929
late String name;
30-
late List<_Task> tasks;
30+
late List<_Item> items;
3131
int? quota;
3232
}
3333
// :snippet-end:

examples/dotnet/Examples/RqlSchemaExamples.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ namespace Examples.RqlSchemaExamples
1010
// "terms": {
1111
// "RqlTask": "Item",
1212
// "RqlProject": "Project",
13-
// "RqlTasks": "Items"}
13+
// "RqlTasks": "Items",
14+
// "RqlItems": "Items"}
1415
// }
1516
public class RqlTask : RealmObject
1617
{

examples/kotlin/shared/src/commonTest/kotlin/com/mongodb/realm/realmkmmapp/RQLTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package com.mongodb.realm.realmkmmapp
22

33
import io.realm.kotlin.types.RealmList
4-
import org.mongodb.kbson.ObjectId
54
import io.realm.kotlin.types.RealmObject
65
import io.realm.kotlin.types.annotations.PrimaryKey
6+
import org.mongodb.kbson.ObjectId
77

88
class RQLTest: RealmTest() {
99
// :snippet-start: rql-schema-example
10-
class Task(): RealmObject {
10+
class Item(): RealmObject {
1111
@PrimaryKey
1212
var _id: ObjectId = ObjectId()
1313
lateinit var name: String
@@ -21,7 +21,7 @@ class RQLTest: RealmTest() {
2121
@PrimaryKey
2222
var _id: ObjectId = ObjectId()
2323
lateinit var name: String
24-
lateinit var tasks: RealmList<Task>
24+
lateinit var items: RealmList<Item>
2525
var quota: Int? = null
2626
}
2727
// :snippet-end:

0 commit comments

Comments
 (0)