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.

<QueryContent> component

See original GitHub issue

Describe the solution you’d like

The queryContent() composable provides a way to make programmatic queries in the content/ directory. The <QueryContent> component could act as a wrapper around the composable and accept props to create the queryBuilder and render the content.

Usage

<template>
  <QueryContent path="articles" :only="['title']" :where="{author: 'Ada Lovelace'}" />
</template>

Minus

The potential downside would be having to maintain both the composable and the component in case of API changes.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Atinuxcommented, May 13, 2022

What about calling it ContentQuery instead?

1reaction
Tahulcommented, May 13, 2022

Since latest changes <Content /> ships useAsyncData and queryContent anyways.

Read more comments on GitHub >

github_iconTop Results From Across the Web

queryContent() - Nuxt Content
queryContent (). The queryContent composable provides methods for querying and fetching your contents. Create a query builder to search contents.
Read more >
QUERY CONTENT - IBM
Use this command to display information about files in a storage pool volume, and the names of client files that link to a...
Read more >
Adding Fields to Query Content - Oracle Help Center
Adding Fields to Query Content. Next Topic. This section describes the service operations that are available for adding fields to a query. These...
Read more >
Query content - Sitefinity CMS .NET Core Renderer
The IRestClient interface is part of Sitefinity REST SDK, which you can download from Sitefinity NuGet Repository. The Progress.Sitefinity.
Read more >
AWebFactory on Twitter: "Added ¨Displaying a markdown ...
... using the ContentQuery component¨and today ¨Using queryContent composable where method to ... instead of grabbing vue components from markdown, or both.
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