In Relay how should I get from global Id to local Id on client?
<p>On the server <code>fromGlobalId(id)</code> is used to get from a relay global Id to the actual Id on the on the object.</p>

<p>At the moment I am doing the same on the client i.e.</p>

<p><code>javascript
import { fromGlobalId } from 'graphql-relay'
fromGlobalId(accounts[0].id)
</code></p>

<p>It gives the correct result:</p>

<p><code>Object {type: "Account", id: "0"}</code></p>

<p>but should I be importing <code>graphql-relay</code> on client is there a way I can do this with just <code>react-relay</code>?</p>