blacksmithgu / datacore

Work-in-progress successor to Dataview with a focus on UX and speed.
MIT License
1.5k stars 16 forks source link

[Bug(?)] Non-JS Datacore Queries Not Rendering #45

Closed julroger2013 closed 4 months ago

julroger2013 commented 5 months ago

It looked like, from the documentation, that the "vanilla" datacore query block (equivalent to a ```dataview code block) would have ```datacore as the right way to start the code block.

Is that right?

I'm finding that the following code block doesn't render anything:

```datacore @pages ```

Apologies if I misunderstood the documentation or this function just isn't part of the beta yet. Figured it couldn't hurt to ask.

Quorafind commented 5 months ago

Currently, datacore codeblock is not supported yet. Hovever, you can use code below to render pages:

```datacorets  
return dc.api.query("@page and #game").map((i)=> "- " + i.$file)
julroger2013 commented 5 months ago

thank you for confirming – I figured that was probably the case.

blacksmithgu commented 5 months ago

Non JS views aren't available yet since I haven't really figured out how they should look like; I recommend the datacorejs/datacorejsx blocks for now.

julroger2013 commented 4 months ago

That makes sense.

I have time on my hands for at least a couple months. I don't have the coding skill to pitch in, but I could probably write some documentation if that would be useful. All ears if you can use any help.

blacksmithgu commented 4 months ago

If you're interested in contributing or trying out the plugin I'd recommend joining/lurking in the discord (link is in the contributing section in the README) - happy to iterate there. The current (lacking) documentation is here: https://github.com/blacksmithgu/datacore/tree/master/docs.