De oplossing voor mijn probleem stond in de documentatie onder Associating Objects (die had ik blijkbaar overgeslagen).
Daarin wordt uitgelegd dat als belongsToMany correct is geconfigureerd, er automatisch diverse methoden worden aangemaakt om de associatie te beheren (getX, addX, getXs, addXs, enzovoort).
Mijn tweede probleem was de alias die ik in belongsToMany had opgegeven. Omdat ik niet wist dat het de naam van het model overneemt, had ik zelf een naam ingesteld en ze verwisseld. Nu ik de aliassen heb verwijderd, werkt het prima.
db.Game.belongsToMany(db.Platform, {through: db.GamePlatforms, foreignKey: 'game_platforms_fk_game'});
db.Platform.belongsToMany(db.Game, {through: db.GamePlatforms, foreignKey: 'game_platforms_fk_platform'});En dit is de code die ik gebruik om "een associatie toevoegen" te testen.
Game.find({where: {game_short: 'SFV'}})
.then(function(game) {
Platform.find({where: {platform_short: 'PC'}})
.then(plat => game.addPlatform(plat));
})
.catch(err => console.log('Error asso game and platform', err));