question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get or push any data with "/" in the key.

See original GitHub issue

Example:

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:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Belphemurcommented, Mar 15, 2019

I’ve decided to do 2 things:

  1. Add to the readme the limitation
  2. Let the user choose the separator see #76

You’ll have control on what to use and it not conflicting with your own variable name.

0reactions
iainvmcommented, Mar 15, 2019

If this is going to be a known bug, the README.md should be updated to reflect it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found