Can't get or push any data with "/" in the key.
See original GitHub issueExample:
Code
let data = {
"norm_key": "data",
"bad/key":"other data"
}
db.push("normal_key", data);
db.push("bad/key", data);
DB
{
"normal_key": {
"norm_key": "data",
"bad/key":"other data"
},
"bad": {
"key": {
"norm_key": "data",
"bad/key":"other data"
}
}
}
So you can create a key that has a /
in it, but you can push data that does. This makes the "other data"
unreachable, since by entering the key /bad/key/bad/key
you’ll search for
{
"bad": {
"key": {
"bad": {
"key":"other data"
}
}
}
}
That doesn’t exist
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Can't Post data containing $ in a key to Firebase
It's supposed to be a valid JSON but it seems like it's a limitation for FireBase. From FireBase Documentation: Character Set Limitations.
Read more >$push — MongoDB Manual
Starting in MongoDB 5.0, mongod no longer raises an error when you use an update operator like $push with an empty operand expression...
Read more >TypeScript - Array push()
TypeScript - Array push(), push() method appends the given element(s) in the last of the array and returns the length of the new...
Read more >If your Mac doesn't respond to key presses
Choose Apple menu > System Settings, click Accessibility in the sidebar, then click Pointer Control on the right.
Read more >InfluxDB frequently asked questions
If your data is stored in another RP, you must specify the RP in your query to get results. No field key in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve decided to do 2 things:
You’ll have control on what to use and it not conflicting with your own variable name.
If this is going to be a known bug, the
README.md
should be updated to reflect it.