We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8001591 commit 6354de0Copy full SHA for 6354de0
Example/NotesExample-iOS/NotesOverviewViewController.swift
@@ -23,7 +23,7 @@ class NotesOverviewViewController: UITableViewController {
23
self.authorId = authorId
24
25
if let authorId = authorId {
26
- query = noteBox.query { Note.authorId == authorId }
+ query = noteBox.query { Note.author == authorId }
27
} else {
28
query = noteBox.query()
29
}
Example/Shared/Author.swift
@@ -6,7 +6,8 @@ import ObjectBox
6
class Author {
7
var id: Id<Author> // An `Id<Author>` is required by ObjectBox
8
var name: String
9
- var notes: ToMany<Note, Author> // Backlinks
+ // sourcery: backlink = "author"
10
+ var notes: ToMany<Note, Author>
11
12
// An initializer with no parameters is required by ObjectBox
13
required init() {
0 commit comments