Since this tutorial deals with Relay + GraphQL, it is imperative to know GraphQL at the very minimum and some basics of Relay. Here are some tutorials/articles that can help you get up to speed with Relay + GraphQL:

# Load sample data

Once NPM has finished installing the required Node modules, run the following NPM script to load the sample Todo list data we have provided into the database (make sure you shutdown the running Node server. We'll run it again at the end of the tutorial):

            $ npm run load-sample -s

The above command stores the sample data into the relaytest database. You can check if the sample data loaded correctly by launching the "mongo" client and switching to the relaytest database. Once switched, you can query the users collection and todos collection to inspect the loaded sample data:

            $ ~ mongo
            MongoDB shell version: 3.0.6
            connecting to: test
            > use relaytest
            switched to db relaytest
            > db.users.find()
            { "_id" : ObjectId("57795055e2d69f99e24d432a"), "name" : "admin" }
            > db.todos.find()
            { "_id" : ObjectId("57795055e2d69f99e24d432b"), "todo" : "Prepare new Billing format", "completed" : false, "user" : "admin" }
            { "_id" : ObjectId("57795055e2d69f99e24d432c"), "todo" : "Create benefits presentation", "completed" : false, "user" : "admin" }
            { "_id" : ObjectId("57795055e2d69f99e24d432d"), "todo" : "Prepare productivity report", "completed" : false, "user" : "admin" }
            { "_id" : ObjectId("57795055e2d69f99e24d432e"), "todo" : "Review non-exempt evaluations", "completed" : false, "user" : "admin" }
            { "_id" : ObjectId("57795055e2d69f99e24d432f"), "todo" : "Update insurance information", "completed" : false, "user" : "admin" }