The object IS passed by reference, that is, a pointer to the object is passed to the method. That pointer cannot be changed by the method. But the method can use the pointer to change things within the object, and those changes are visible to the caller, and to anyone that has that reference.
@boyjarv Well I’ve suggested twice now to nest available languages for a course in an array, instead of this weird smashing all the properties at the top level of the object.
Why are you trying to use a noSQL database when it’s clear a relational database would be far better?
@boyjarv And how is noSQL working out for you so far? Bearing in mind the amount of questions you’ve asked already because of the difficulties in retrieving and working with data 😉
great for what I need it to do..I usually would always go down the relational database route but for the particular project that is just using and reusing a large JSON object the no-relational db seems to be better suited