From 921f2a8715a15edac6cabdbbd824df0ac9251dca Mon Sep 17 00:00:00 2001 From: Guilherme Date: Mon, 8 Jan 2024 14:26:14 -0800 Subject: [PATCH] fix(docs): normalize local data updates doc (#4564) Summary: Pull Request resolved: https://github.com/facebook/relay/pull/4564 Reviewed By: monicatang Differential Revision: D52609113 Pulled By: captbaritone fbshipit-source-id: abbb3730fc92e17ed24a9f61e1add19b11a7a508 --- website/docs/guided-tour/updating-data/local-data-updates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guided-tour/updating-data/local-data-updates.md b/website/docs/guided-tour/updating-data/local-data-updates.md index 1ef8381e2c673..90019fbdace84 100644 --- a/website/docs/guided-tour/updating-data/local-data-updates.md +++ b/website/docs/guided-tour/updating-data/local-data-updates.md @@ -59,7 +59,7 @@ const operationDescriptor = createOperationDescriptor(FooQuery, { const payload: FooQueryRawResponse = {...}; -environment.commitPayload(operation, payload); +environment.commitPayload(operationDescriptor, payload); ``` * An `OperationDescriptor` can be created by `createOperationDescriptor`; it takes the query and the query variables.