import { ConnectionHandler , Environment , RecordProxy , RecordSourceSelectorProxy , } from "relay-runtime" ; import { getViewerSourceID } from "coral-framework/helpers" ; export default function prependCommentEdgeToProfile ( environment , store , commentEdge ) { const meProxy = store . get ( getViewerSourceID ( environment ) ! ) ! ; const con = ConnectionHandler . getConnection ( meProxy , "CommentHistory_comments" ) ; if ( con ) { ConnectionHandler . insertEdgeBefore ( con , commentEdge ) ; } }