Giter VIP home page Giter VIP logo

Comments (9)

blacksmithgu avatar blacksmithgu commented on May 24, 2024 2

Confirmed to be included in 0.2.0, using the FLATTEN command, like so:

TABLE owner, pet FROM #owners
FLATTEN pets AS pet

from obsidian-dataview.

blacksmithgu avatar blacksmithgu commented on May 24, 2024 1

Interesting! So essentially flatten arrays/maps (so one logical row per entry, per file) and do a query over that. Implementation wise it doesn't seem too bad, it would just complicate the FROM block somewhat. Perhaps a separate FLATTEN operation would make the query simpler (so it would look like)

```dataview
table pets.name, pets.age, owners.name as "parent note"
unnest pets
from "pet-owners"
```

I'll probably look at this at some point in the future, but would be happy to consult if you want to take a look at the feature yourself.

from obsidian-dataview.

blacksmithgu avatar blacksmithgu commented on May 24, 2024 1

The syntax may look a little different than what I mentioned above, but this will be coming as part of pipeline queries in 0.2.0, the release after the upcoming release.

from obsidian-dataview.

kevboh avatar kevboh commented on May 24, 2024

Yes, exactly! I like the idea of an unnest query term, it hints at multi-level unnesting πŸ˜€

I'll take a look at this in the next few weeks; if you get to it first, all the better.

from obsidian-dataview.

arnonel avatar arnonel commented on May 24, 2024

+1 for me. This would rock

from obsidian-dataview.

arnonel avatar arnonel commented on May 24, 2024

Legend. This will be magnificent.

p.s. Thanks for this plugin. I has totally transformed my workflow. Really REALLY appreciate your work.

from obsidian-dataview.

kevboh avatar kevboh commented on May 24, 2024

Amazing! And ditto, such valuable work.

from obsidian-dataview.

arnonel avatar arnonel commented on May 24, 2024

I'm literally refreshing your github every few hours waiting for this release πŸ˜‚

Super excited

from obsidian-dataview.

blacksmithgu avatar blacksmithgu commented on May 24, 2024

Released as part of 0.2.0; let me know if you encounter any problems.

from obsidian-dataview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.