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.

Keys with spaces cannot be queried

See original GitHub issue

Say I have a note “test” with these fields and values

---
Multiple words: yes
singleWord: yes
---

DQL cannot retrieve it:

```dataview
list where singleWord = "yes" 

(return the note "test)

list where ["Multiple words"] = "yes" 

(0 results)

However in the console I can still retrieve it:

app.plugins.plugins.dataview.api.page("test")["Multiple words"]
"yes"
  • Dataview Version: 0.4.22. Obsidian Version: 0.13.23. OS: Windows

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
blacksmithgucommented, Jun 8, 2022

Fixed at some point in 0.5.22+ or later.

1reaction
dimsplendidcommented, Apr 30, 2022

To avoid some interaction with other plugins, I created a new vault and install only the Dataview plugin for testing.

And the problem is the same, did I make any mistake?

raw:

---

date created: Thursday, April 28th 2022, 10:25:40 pm

---

- all
`=this`

- test kebab case
`=this.date-created`

- key-value
`=this["date created"]`

preview:

- all
file: path: test.md, folder: , name: test, link: [test](app://obsidian.md/test.md), outlinks: <empty list>, inlinks: <empty list>, etags: <empty list>, tags: <empty list>, aliases: <empty list>, tasks: <empty list>, ctime: 11:36 PM - April 30, 2022, cday: April 30, 2022, mtime: 11:39 PM - April 30, 2022, mday: April 30, 2022, size: 145, ext: md, date created: Thursday, April 28th 2022, 10:25:40 pm, position: start: line: 0, col: 0, offset: 0, end: line: 4, col: 3, offset: 62

- test kebab case
-

- key-value
Thursday, April 28th 2022, 10:25:40 pm

print screen:

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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