Skip to content

Commit 5abdf4a

Browse files
Fix wrong value with relationship code example
1 parent 7ab23aa commit 5abdf4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/developers/applications/defining-schemas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Again, the foreign key may be a multi-valued array (array of keys referencing th
7777
type Product @table @export {
7878
id: ID @primaryKey
7979
featureIds: [ID] @indexed # array of ids
80-
features: [Feature] @relationship(from: brandId) # array of referenced feature records
80+
features: [Feature] @relationship(from: featureIds) # array of referenced feature records
8181
}
8282
type Feature @table {
8383
id: ID @primaryKey

0 commit comments

Comments
 (0)