Skip to content

Commit

Permalink
Fix reverse lookups example (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
azf20 authored Feb 2, 2022
1 parent 3963b55 commit a8801c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/en/developer/create-subgraph-hosted.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,13 @@ A more performant way to store this relationship is through a mapping table that
type Organization @entity {
id: ID!
name: String!
members: [UserOrganization]! @derivedFrom(field: "user")
members: [UserOrganization]! @derivedFrom(field: "organization")
}
type User @entity {
id: ID!
name: String!
organizations: [UserOrganization!] @derivedFrom(field: "organization")
organizations: [UserOrganization!] @derivedFrom(field: "user")
}
type UserOrganization @entity {
Expand Down

0 comments on commit a8801c7

Please sign in to comment.