Skip to content

Commit

Permalink
fix(docs): normalize local data updates doc (#4564)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #4564

Reviewed By: monicatang

Differential Revision: D52609113

Pulled By: captbaritone

fbshipit-source-id: abbb3730fc92e17ed24a9f61e1add19b11a7a508
  • Loading branch information
noghartt authored and facebook-github-bot committed Jan 8, 2024
1 parent 5bf98ab commit 921f2a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 921f2a8

Please sign in to comment.