diff --git a/website/docs/api-reference/relay-runtime/store.md b/website/docs/api-reference/relay-runtime/store.md index 85d594e9aa9fc..40c75cfb8cd6f 100644 --- a/website/docs/api-reference/relay-runtime/store.md +++ b/website/docs/api-reference/relay-runtime/store.md @@ -618,7 +618,7 @@ fragment FriendsFragment on User { For connections like the above, `ConnectionHandler` helps us find the record: -``` +```javascript import {ConnectionHandler} from 'relay-runtime'; @@ -650,7 +650,7 @@ Given a connection, inserts the edge at the end of the connection, or after the #### Example -``` +```javascript const user = store.get(userID); const friends = ConnectionHandler.getConnection(user, 'FriendsFragment_friends'); @@ -671,7 +671,7 @@ Given a connection, deletes any edges whose node id matches the given id. #### Example -``` +```javascript const user = store.get(userID); const friends = ConnectionHandler.getConnection(user, 'FriendsFragment_friends');