-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Homepage updates #3431
Homepage updates #3431
Conversation
Hi! I don't think adding a method to find Here's a query you can use to find the number of non-grapherId views: SELECT COUNT(*)
FROM explorers,
json_table(config, "$.blocks[*]"
COLUMNS (
type TEXT PATH "$.type",
NESTED PATH "$.block[*]"
COLUMNS (grapherId INT PATH "$.grapherId")
)
) t1
WHERE isPublished = 1
AND type = "graphers"
AND grapherId IS NULL Maybe @danyx23 has a good idea how best to incorporate this query into the baking process, or where to put it? |
Nice query, @marcelgerber :). I think putting this into the db folder, maybe in a new file, and calling it during baking sounds like a pretty good solution. |
ef97db3
to
fe0fb50
Compare
fe0fb50
to
514fb9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
514fb9b
to
a095085
Compare
Resolves (most of) #3290