Use firebase timestamp within a string -


given have following data structure:

{   operation: {     abc123: {       action: "sendemail",       status: "pending:167423383473"     }   } } 

is possible insert operation status of following form?

"pending:firebase.servervalue.timestamp" 

edit: reason need in same column need sort operations status , timestamp. firebase possible if they're combined single property.

i'm not possible, since firebase.servervalue.timestamp placeholder object, {.sv: "timestamp"}, until reaches server. concatenating string not have desired effect. suggest following solution:

{   operation: {     abc123: {       action: "sendemail",       status: {         type: "pending",         timestamp: 167423383473       }     }   } } 

or possibly:

{   operation: {     abc123: {       action: "sendemail",       statustype: "pending",       statustimestamp: 167423383473     }   } } 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -