{"push_id":767059181,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"d2a8b5797b00218b2a15c3c2bd77823b7dd4949b","before":"b550864b7d3f62f6b44f1a840c70d030fe8f1a51","commits":[{"sha":"8812811c704d6132390d3382f3443e7f55e581e9","author":{"email":"1dd72cf724deaab5db236f616560fc7067b734e1@brigade.com","name":"Joe Lencioni"},"message":"Tutorial: export Game and HidingSpot classes\n\nIn the following step of this tutorial, there is some code that imports\nthese classes from this file.\n\n```\nimport {\n  Game,\n  HidingSpot,\n  ...\n} from './database';\n```\n\nHowever, since they are not exported, they will be undefined when\nimported. This comes into play in the `nodeDefinitions` object type\nresolver when we try to run `obj instanceof Game`. Since `Game` is\nundefined, this will result in an error such as:\n\n> Expecting a function in instanceof check, but got undefined\n\nFor the scope of this tutorial, this doesn't seem to make much\ndifference. However, for folks wanting to move beyond this tutorial into\nsomething a little more complicated, such as pagination, this oddity\ncould be a stumbling block to learning.","distinct":true,"url":"https://api.github.com/repos/facebook/relay/commits/8812811c704d6132390d3382f3443e7f55e581e9"},{"sha":"d2a8b5797b00218b2a15c3c2bd77823b7dd4949b","author":{"email":"79e2475f81a6317276bf7cbb3958b20d289b78df@hurrell.net","name":"Greg Hurrell"},"message":"Merge pull request #152 from lencioni/tutorial-export-class\n\nTutorial: export Game and HidingSpot classes","distinct":true,"url":"https://api.github.com/repos/facebook/relay/commits/d2a8b5797b00218b2a15c3c2bd77823b7dd4949b"}]}