Add missing parts to example readUpdatableQuery_EXPERIMENTAL query
Summary: This example didn't work as-is. It was missing the top-level `query` and the `updatable` annotation.
@@ -248,9 +248,11 @@ function NameUpdater({ queryRef }: {
commitLocalUpdate(environment, store => {
const {updatableData} = store.readUpdatableQuery_EXPERIMENTAL(
graphql`
+ query NameUpdaterUpdateQuery @updatable {
viewer {
name
}
+ }
`,
{}
);
