Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
julroger2013 opened this issue Jun 20, 2024 · 5 comments
Closed

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

julroger2013 opened this issue Jun 20, 2024 · 5 comments

Comments

@julroger2013
Copy link

julroger2013 commented Jun 20, 2024

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
Copy link
Contributor

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
Copy link
Author

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

@blacksmithgu
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants