I create an app with GatsbyJS (React) + Firebase.
Users have a score saved in Firebase Realtime Database with their data.
{
users: {
$uid: {
score: 10,
name: "Antho",
...
}
}
}
I do not want users to be able to change their score themselves, so I split my database like this:
{
users: {
$uid: {
name: "uciska",
...
}
},
scores: {
$uid: {
score: 10
}
}
}
But I do not know what rules to put in place.
I think I need some backend code. If so I would like to go through Amazon Lambda functions without having to set up a Node.js server.
Is it possible ? Where to start ?
Could Cloud Firestore do that more simply?