Meteor doesnât have any specific syntax - itâs just javascript.
In JS, {"x": y} is an object literal and is more or less the same as {x: y}, except that âxâ is now a string (which allows you to do stuff like {"user.name": y})
With ES6 (the latest version of JS) we can now use âcomputed property namesâ like this:
let x = 'foo';
let y = 'bar';
// {'foo' : bar'}
let z = {
[x]: y // [you can put expressions in here]
};
Prior to ES6, you would probably do something like this: