From a8801c79c6d86cdf38bcb3d9f4d48af18aa32a82 Mon Sep 17 00:00:00 2001 From: Adam Fuller Date: Wed, 2 Feb 2022 16:28:02 +0000 Subject: [PATCH] Fix reverse lookups example (#49) --- pages/en/developer/create-subgraph-hosted.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/en/developer/create-subgraph-hosted.mdx b/pages/en/developer/create-subgraph-hosted.mdx index 3b05b2548456..64338ec54a57 100644 --- a/pages/en/developer/create-subgraph-hosted.mdx +++ b/pages/en/developer/create-subgraph-hosted.mdx @@ -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 {