Skip to content

Commit a8801c7

Browse files
authored
Fix reverse lookups example (#49)
1 parent 3963b55 commit a8801c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/en/developer/create-subgraph-hosted.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,13 @@ A more performant way to store this relationship is through a mapping table that
333333
type Organization @entity {
334334
id: ID!
335335
name: String!
336-
members: [UserOrganization]! @derivedFrom(field: "user")
336+
members: [UserOrganization]! @derivedFrom(field: "organization")
337337
}
338338
339339
type User @entity {
340340
id: ID!
341341
name: String!
342-
organizations: [UserOrganization!] @derivedFrom(field: "organization")
342+
organizations: [UserOrganization!] @derivedFrom(field: "user")
343343
}
344344
345345
type UserOrganization @entity {

0 commit comments

Comments
 (0)