I have some issue with getting full data from db. That are my models: User Role I want to get object of one specific user including all role content. Somethink like So I’m using: but I get in the result err.message: “role is not associated to user” And the simple question – what’s wrong ? 🙂 *to handle models I’m
Tag: database
Leaderboard ranking with Firebase
I have project that I need to display a leaderboard of the top 20, and if the user not in the leaderboard they will appear in the 21st place with their current ranking. Is there efficient way to this? I am using Cloud Firestore as a database. I believe it was mistake to choose it instead of MongoDB but I
jQuery calls a PHP file to get data from mysql database?
Ok so I have found a number of tutorials online and have followed each of them step by step. My problem is that I know javascript/jQuery much better than I know PHP and I cannot figure out how to even debug what is going wrong in that section. Basically I have a bunch of buttons and a from and when
Is there any way to create mongodb like _id strings without mongodb?
I really like the format of the _ids generated by mongodb. Mostly because I can pull data like the date out of them client side. I’m planning to use another database but still want that type of _id for my document. How can I create these ids without using mongodb? Thanks! Answer Object IDs are usually generated by the client,
What is this JavaScript “require”?
I’m trying to get JavaScript to read/write to a PostgreSQL database. I found this project on GitHub. I was able to get the following sample code to run in Node. Next I tried to make it run on a webpage, but nothing seemed to happen. I checked on the JavaScript console and it just says “require not defined”. So what