Create unique notes for usersFirebase Auth and DatabaseHow do I create a transparent Activity on Android?Is there a unique Android device ID?Can't create handler inside thread that has not called Looper.prepare()Android “Only the original thread that created a view hierarchy can touch its views.”Get users by name property using FirebaseHow to create RecyclerView with multiple view type?Moshi's Custom Adapter with RxAndroid & Retrofit & KotlinGet children using orderByChild-equalsTo in Firebase-AndroidAdding Social Media Share Logic From Firebase in AndroidUpdated global variables does not reflect inside ValueEventListener's onCancelled method

Inside Out and Back to Front

Is encryption still applied if you ignore the SSL certificate warning for self-signed certs?

Could a US citizen born through "birth tourism" become President?

What are my hardware upgrade optoins for a late 2009 iMac?

Making a Dataset that emulates `ls -tlra`?

When will the last unambiguous evidence of mankind disappear?

Can a creature sustain itself by eating its own severed body parts?

You have no, but can try for yes

Is it ethical to tell my teaching assistant that I like them?

To what extent does asymmetric cryptography secure bitcoin transactions?

Which modern firearm should a time traveler bring to be easily reproducible for a historic civilization?

Parser for STL stereolithography data files

What makes MOVEQ quicker than a normal MOVE in 68000 assembly?

Counting multiples of 3 up to a given number

Why are there few or no black super GMs?

Should I have one hand on the throttle during engine ignition?

Get Chord Name From a Given Set of Notes

Applying for jobs with an obvious scar

Project Euler # 25 The 1000 digit Fibonacci index

Why xargs uses -t to enable verbose mode?

I want light controlled by one switch, not two

Why is this guy handcuffed censored?

Should I have shared a document with a former employee?

Does a hash function have a Upper bound on input length?



Create unique notes for users


Firebase Auth and DatabaseHow do I create a transparent Activity on Android?Is there a unique Android device ID?Can't create handler inside thread that has not called Looper.prepare()Android “Only the original thread that created a view hierarchy can touch its views.”Get users by name property using FirebaseHow to create RecyclerView with multiple view type?Moshi's Custom Adapter with RxAndroid & Retrofit & KotlinGet children using orderByChild-equalsTo in Firebase-AndroidAdding Social Media Share Logic From Firebase in AndroidUpdated global variables does not reflect inside ValueEventListener's onCancelled method






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Implemented in the application firebase authentication. As well as the ability to add and delete records. But when I go with another account, the records are the same everywhere.



Q: how can I create my own records for each authorized user?



Now have smth like this:



enter image description here



As I understood from the comment I need to add another field to my structure: "users". And ultimately get type target-list - > users - > targets



But for example in my main activity I select as follows:
databaseReference = FirebaseDatabase.getInstance().getReference("targets")



How do I understand here I have to change the structure?



UPD:
I tried to to next:



private fun updateListData() 
val uid = FirebaseAuth.getInstance().currentUser?.uid ?: ""
databaseReference = FirebaseDatabase.getInstance().getReference("targets").child(uid)
getTargetsFromDb()



and in getTargetsFromDb():



private fun getTargetsFromDb() 
databaseReference?.addValueEventListener(object : ValueEventListener
override fun onDataChange(dataSnapshot: DataSnapshot)
for (targetSnapshot in dataSnapshot.children)
val target = targetSnapshot.getValue(Target::class.java)
target?.let targetList.add(it)

recyclerView?.adapter = adapter


override fun onCancelled(databaseError: DatabaseError)
Log.d("some", "Error trying to get targets for $databaseError.message")

)



And get next structure:



enter image description here










share|improve this question
























  • You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets

    – Murdok
    Mar 26 at 11:59











  • @Murdok thx, I have updated the question, if not difficult, please see

    – Morozov
    Mar 26 at 12:08











  • Why are you using as the unique identifier a pushed id rather than the uid that is coming from the authentication process?

    – Alex Mamo
    Mar 26 at 12:22












  • @AlexMamo But how can I use the one that comes from the authentication process?

    – Morozov
    Mar 26 at 12:25











  • @AlexMamo I so understand I can use it in onActivityResult() when I successfully pass authorization?

    – Morozov
    Mar 26 at 12:27

















0















Implemented in the application firebase authentication. As well as the ability to add and delete records. But when I go with another account, the records are the same everywhere.



Q: how can I create my own records for each authorized user?



Now have smth like this:



enter image description here



As I understood from the comment I need to add another field to my structure: "users". And ultimately get type target-list - > users - > targets



But for example in my main activity I select as follows:
databaseReference = FirebaseDatabase.getInstance().getReference("targets")



How do I understand here I have to change the structure?



UPD:
I tried to to next:



private fun updateListData() 
val uid = FirebaseAuth.getInstance().currentUser?.uid ?: ""
databaseReference = FirebaseDatabase.getInstance().getReference("targets").child(uid)
getTargetsFromDb()



and in getTargetsFromDb():



private fun getTargetsFromDb() 
databaseReference?.addValueEventListener(object : ValueEventListener
override fun onDataChange(dataSnapshot: DataSnapshot)
for (targetSnapshot in dataSnapshot.children)
val target = targetSnapshot.getValue(Target::class.java)
target?.let targetList.add(it)

recyclerView?.adapter = adapter


override fun onCancelled(databaseError: DatabaseError)
Log.d("some", "Error trying to get targets for $databaseError.message")

)



And get next structure:



enter image description here










share|improve this question
























  • You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets

    – Murdok
    Mar 26 at 11:59











  • @Murdok thx, I have updated the question, if not difficult, please see

    – Morozov
    Mar 26 at 12:08











  • Why are you using as the unique identifier a pushed id rather than the uid that is coming from the authentication process?

    – Alex Mamo
    Mar 26 at 12:22












  • @AlexMamo But how can I use the one that comes from the authentication process?

    – Morozov
    Mar 26 at 12:25











  • @AlexMamo I so understand I can use it in onActivityResult() when I successfully pass authorization?

    – Morozov
    Mar 26 at 12:27













0












0








0








Implemented in the application firebase authentication. As well as the ability to add and delete records. But when I go with another account, the records are the same everywhere.



Q: how can I create my own records for each authorized user?



Now have smth like this:



enter image description here



As I understood from the comment I need to add another field to my structure: "users". And ultimately get type target-list - > users - > targets



But for example in my main activity I select as follows:
databaseReference = FirebaseDatabase.getInstance().getReference("targets")



How do I understand here I have to change the structure?



UPD:
I tried to to next:



private fun updateListData() 
val uid = FirebaseAuth.getInstance().currentUser?.uid ?: ""
databaseReference = FirebaseDatabase.getInstance().getReference("targets").child(uid)
getTargetsFromDb()



and in getTargetsFromDb():



private fun getTargetsFromDb() 
databaseReference?.addValueEventListener(object : ValueEventListener
override fun onDataChange(dataSnapshot: DataSnapshot)
for (targetSnapshot in dataSnapshot.children)
val target = targetSnapshot.getValue(Target::class.java)
target?.let targetList.add(it)

recyclerView?.adapter = adapter


override fun onCancelled(databaseError: DatabaseError)
Log.d("some", "Error trying to get targets for $databaseError.message")

)



And get next structure:



enter image description here










share|improve this question
















Implemented in the application firebase authentication. As well as the ability to add and delete records. But when I go with another account, the records are the same everywhere.



Q: how can I create my own records for each authorized user?



Now have smth like this:



enter image description here



As I understood from the comment I need to add another field to my structure: "users". And ultimately get type target-list - > users - > targets



But for example in my main activity I select as follows:
databaseReference = FirebaseDatabase.getInstance().getReference("targets")



How do I understand here I have to change the structure?



UPD:
I tried to to next:



private fun updateListData() 
val uid = FirebaseAuth.getInstance().currentUser?.uid ?: ""
databaseReference = FirebaseDatabase.getInstance().getReference("targets").child(uid)
getTargetsFromDb()



and in getTargetsFromDb():



private fun getTargetsFromDb() 
databaseReference?.addValueEventListener(object : ValueEventListener
override fun onDataChange(dataSnapshot: DataSnapshot)
for (targetSnapshot in dataSnapshot.children)
val target = targetSnapshot.getValue(Target::class.java)
target?.let targetList.add(it)

recyclerView?.adapter = adapter


override fun onCancelled(databaseError: DatabaseError)
Log.d("some", "Error trying to get targets for $databaseError.message")

)



And get next structure:



enter image description here







android firebase firebase-realtime-database kotlin






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 16:18









Alex Mamo

53.3k9 gold badges36 silver badges72 bronze badges




53.3k9 gold badges36 silver badges72 bronze badges










asked Mar 26 at 11:42









MorozovMorozov

1,3501 gold badge11 silver badges32 bronze badges




1,3501 gold badge11 silver badges32 bronze badges












  • You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets

    – Murdok
    Mar 26 at 11:59











  • @Murdok thx, I have updated the question, if not difficult, please see

    – Morozov
    Mar 26 at 12:08











  • Why are you using as the unique identifier a pushed id rather than the uid that is coming from the authentication process?

    – Alex Mamo
    Mar 26 at 12:22












  • @AlexMamo But how can I use the one that comes from the authentication process?

    – Morozov
    Mar 26 at 12:25











  • @AlexMamo I so understand I can use it in onActivityResult() when I successfully pass authorization?

    – Morozov
    Mar 26 at 12:27

















  • You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets

    – Murdok
    Mar 26 at 11:59











  • @Murdok thx, I have updated the question, if not difficult, please see

    – Morozov
    Mar 26 at 12:08











  • Why are you using as the unique identifier a pushed id rather than the uid that is coming from the authentication process?

    – Alex Mamo
    Mar 26 at 12:22












  • @AlexMamo But how can I use the one that comes from the authentication process?

    – Morozov
    Mar 26 at 12:25











  • @AlexMamo I so understand I can use it in onActivityResult() when I successfully pass authorization?

    – Morozov
    Mar 26 at 12:27
















You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets

– Murdok
Mar 26 at 11:59





You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets

– Murdok
Mar 26 at 11:59













@Murdok thx, I have updated the question, if not difficult, please see

– Morozov
Mar 26 at 12:08





@Murdok thx, I have updated the question, if not difficult, please see

– Morozov
Mar 26 at 12:08













Why are you using as the unique identifier a pushed id rather than the uid that is coming from the authentication process?

– Alex Mamo
Mar 26 at 12:22






Why are you using as the unique identifier a pushed id rather than the uid that is coming from the authentication process?

– Alex Mamo
Mar 26 at 12:22














@AlexMamo But how can I use the one that comes from the authentication process?

– Morozov
Mar 26 at 12:25





@AlexMamo But how can I use the one that comes from the authentication process?

– Morozov
Mar 26 at 12:25













@AlexMamo I so understand I can use it in onActivityResult() when I successfully pass authorization?

– Morozov
Mar 26 at 12:27





@AlexMamo I so understand I can use it in onActivityResult() when I successfully pass authorization?

– Morozov
Mar 26 at 12:27












1 Answer
1






active

oldest

votes


















0














Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:



Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"


To get all the targets that corresponde to a particular user, simply use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);


An alternative database structure might be:



Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"


As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);


So it's up to you to decide which one is better for you.






share|improve this answer























  • in the second case you get the Query for targetsRef. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?

    – Morozov
    Mar 26 at 14:21






  • 1





    Sure you need to create a user in the database. I didn't add the users node because of space but you definetely should add it.

    – Alex Mamo
    Mar 26 at 14:27











  • Hi Morozov! Is there everything alright, can I help you with other informations?

    – Alex Mamo
    Mar 27 at 9:45











  • Updated question. Can u check please? Maybe I should share my test project. in git as an example?

    – Morozov
    Mar 27 at 16:01











  • As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.

    – Alex Mamo
    Mar 27 at 16:17










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356311%2fcreate-unique-notes-for-users%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:



Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"


To get all the targets that corresponde to a particular user, simply use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);


An alternative database structure might be:



Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"


As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);


So it's up to you to decide which one is better for you.






share|improve this answer























  • in the second case you get the Query for targetsRef. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?

    – Morozov
    Mar 26 at 14:21






  • 1





    Sure you need to create a user in the database. I didn't add the users node because of space but you definetely should add it.

    – Alex Mamo
    Mar 26 at 14:27











  • Hi Morozov! Is there everything alright, can I help you with other informations?

    – Alex Mamo
    Mar 27 at 9:45











  • Updated question. Can u check please? Maybe I should share my test project. in git as an example?

    – Morozov
    Mar 27 at 16:01











  • As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.

    – Alex Mamo
    Mar 27 at 16:17















0














Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:



Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"


To get all the targets that corresponde to a particular user, simply use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);


An alternative database structure might be:



Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"


As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);


So it's up to you to decide which one is better for you.






share|improve this answer























  • in the second case you get the Query for targetsRef. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?

    – Morozov
    Mar 26 at 14:21






  • 1





    Sure you need to create a user in the database. I didn't add the users node because of space but you definetely should add it.

    – Alex Mamo
    Mar 26 at 14:27











  • Hi Morozov! Is there everything alright, can I help you with other informations?

    – Alex Mamo
    Mar 27 at 9:45











  • Updated question. Can u check please? Maybe I should share my test project. in git as an example?

    – Morozov
    Mar 27 at 16:01











  • As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.

    – Alex Mamo
    Mar 27 at 16:17













0












0








0







Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:



Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"


To get all the targets that corresponde to a particular user, simply use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);


An alternative database structure might be:



Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"


As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);


So it's up to you to decide which one is better for you.






share|improve this answer













Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:



Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"


To get all the targets that corresponde to a particular user, simply use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);


An alternative database structure might be:



Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"


As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:



val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);


So it's up to you to decide which one is better for you.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 26 at 13:42









Alex MamoAlex Mamo

53.3k9 gold badges36 silver badges72 bronze badges




53.3k9 gold badges36 silver badges72 bronze badges












  • in the second case you get the Query for targetsRef. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?

    – Morozov
    Mar 26 at 14:21






  • 1





    Sure you need to create a user in the database. I didn't add the users node because of space but you definetely should add it.

    – Alex Mamo
    Mar 26 at 14:27











  • Hi Morozov! Is there everything alright, can I help you with other informations?

    – Alex Mamo
    Mar 27 at 9:45











  • Updated question. Can u check please? Maybe I should share my test project. in git as an example?

    – Morozov
    Mar 27 at 16:01











  • As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.

    – Alex Mamo
    Mar 27 at 16:17

















  • in the second case you get the Query for targetsRef. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?

    – Morozov
    Mar 26 at 14:21






  • 1





    Sure you need to create a user in the database. I didn't add the users node because of space but you definetely should add it.

    – Alex Mamo
    Mar 26 at 14:27











  • Hi Morozov! Is there everything alright, can I help you with other informations?

    – Alex Mamo
    Mar 27 at 9:45











  • Updated question. Can u check please? Maybe I should share my test project. in git as an example?

    – Morozov
    Mar 27 at 16:01











  • As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.

    – Alex Mamo
    Mar 27 at 16:17
















in the second case you get the Query for targetsRef. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?

– Morozov
Mar 26 at 14:21





in the second case you get the Query for targetsRef. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?

– Morozov
Mar 26 at 14:21




1




1





Sure you need to create a user in the database. I didn't add the users node because of space but you definetely should add it.

– Alex Mamo
Mar 26 at 14:27





Sure you need to create a user in the database. I didn't add the users node because of space but you definetely should add it.

– Alex Mamo
Mar 26 at 14:27













Hi Morozov! Is there everything alright, can I help you with other informations?

– Alex Mamo
Mar 27 at 9:45





Hi Morozov! Is there everything alright, can I help you with other informations?

– Alex Mamo
Mar 27 at 9:45













Updated question. Can u check please? Maybe I should share my test project. in git as an example?

– Morozov
Mar 27 at 16:01





Updated question. Can u check please? Maybe I should share my test project. in git as an example?

– Morozov
Mar 27 at 16:01













As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.

– Alex Mamo
Mar 27 at 16:17





As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.

– Alex Mamo
Mar 27 at 16:17








Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356311%2fcreate-unique-notes-for-users%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript