Documentation Issue
Using numbers as name values breaks behaviour, and it's not always immediately obvious. From the documentation, I see that names are always strings, but I think it would be helpful to have a Gotha saying: "Don't use numbers since Payload stores all content as nested JSON, field names must also follow JSON object key rules"
Additional Details
{ "1": "value" }
`const obj - {
1: "value"
};
console.log(obj.1) //Syntax error
console.log(obj['1']); //works fine
`
Documentation Issue
Using numbers as name values breaks behaviour, and it's not always immediately obvious. From the documentation, I see that names are always strings, but I think it would be helpful to have a Gotha saying: "Don't use numbers since Payload stores all content as nested JSON, field names must also follow JSON object key rules"
Additional Details
{ "1": "value" }`const obj - {
1: "value"
};
console.log(obj.1) //Syntax error
console.log(obj['1']); //works fine
`