I tried to follow the example [here](https://thinky.io/documentation/architecture/), however have no luck with it.

I have User Model in user.js file:

```
import thinky from './thinky';
let type = thinky.type;
let User = thinky.createModel('User', {
  id: type.string(),
  username: type.string(),
});
export default User;

let Game = require('./game');
User.hasAndBelongsToMany(Game, "games", "id", "id");

```

Game Model in game.js file:

```
import thinky from './thinky';
let type = thinky.type;
let Game = thinky.createModel('Game', {
  id: type.string(),
  host: type.string()
});

export default Game;

let User = require('./user');
Game.hasAndBelongsToMany(User, "players", "id", "id");

```

When I try to import them to test.js file, where I create instances of User and Game, I get `First argument of hasAndBelongsToMany must be a Model`

I tried to write it without es6 syntax, still does not work...