diff --git a/packages/plugin-relay/README.md b/packages/plugin-relay/README.md index 5409ffddb..5a7340778 100644 --- a/packages/plugin-relay/README.md +++ b/packages/plugin-relay/README.md @@ -178,7 +178,7 @@ builder.node(NumberThing, { the `Node` interface the first time it is used. The `resolve` function for `id` should return a number or string, which will be converted to a globalID. The relay plugin adds to new query fields `node` and `nodes` which can be used to directly fetch nodes using global IDs by calling the -provided `loadOne` or `laodMany` method. Each node will only be loaded once by id, and cached if the +provided `loadOne` or `loadMany` method. Each node will only be loaded once by id, and cached if the same node is loaded multiple times inn the same request. You can provide `loadWithoutCache` or `loadManyWithoutCache` instead if caching is not desired, or you are already using a caching datasource like a dataloader. diff --git a/website/pages/docs/plugins/relay.mdx b/website/pages/docs/plugins/relay.mdx index f460ca2a5..aa0f38fe0 100644 --- a/website/pages/docs/plugins/relay.mdx +++ b/website/pages/docs/plugins/relay.mdx @@ -192,7 +192,7 @@ builder.node(NumberThing, { the `Node` interface the first time it is used. The `resolve` function for `id` should return a number or string, which will be converted to a globalID. The relay plugin adds to new query fields `node` and `nodes` which can be used to directly fetch nodes using global IDs by calling the -provided `loadOne` or `laodMany` method. Each node will only be loaded once by id, and cached if the +provided `loadOne` or `loadMany` method. Each node will only be loaded once by id, and cached if the same node is loaded multiple times inn the same request. You can provide `loadWithoutCache` or `loadManyWithoutCache` instead if caching is not desired, or you are already using a caching datasource like a dataloader.