title: How to sync web client and database ? Creating entity on client side and dealing with IDs
body: <p><strong>Background</strong></p>
  
  <p>Let's say I'm trying to keep a large list of items, with a web UI offering the possibility to add new ones.
  My architecture is a web UI (React/Redux) + a database/server (Graph.cool).</p>
  
  <p>Now when I add a new item, what I can do is simply run the "create" query, get back the item with its database ID, and store the item in an object that indexes all the items by ID.</p>
  
  <p>Problem: the network might be slow / offline, the request can fail, and I'd still want to be able to immediately show the user his newly created item in the list, and sync with the database later.</p>
  
  <p><strong>Question</strong></p>
  
  <p>I'd need a solution that allows me to create the item locally first, and later replace the local ID with the database ID when the response comes back.
  How can I do that ?</p>