home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 1219683223

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1786#issuecomment-1219683223 https://api.github.com/repos/simonw/datasette/issues/1786 1219683223 IC_kwDOBm6k_c5IsuOX 9599 2022-08-18T16:15:13Z 2022-08-18T16:15:13Z OWNER Hard to demo this because the JavaScript kicks in, but if you view source on this page: https://latest.datasette.io/_memory?sql=select+id%2C+name%2C+ingredients%2C+%28%0D%0A++select+json_group_array%28value%29+from+json_each%28ingredients%29%0D%0A++where+value+in+%28select+value+from+json_each%28%3Ap0%29%29%0D%0A%29+as+matching_ingredients%0D%0Afrom+recipes%0D%0Awhere+json_array_length%28matching_ingredients%29+%3E+0%0D%0Aorder+by+json_array_length%28matching_ingredients%29+desc If you view source on that page: ```html <p><textarea id="sql-editor" name="sql" style="height: 9em" >select id, name, ingredients, ( select json_group_array(value) from json_each(ingredients) where value in (select value from json_each(:p0)) ) as matching_ingredients from recipes where json_array_length(matching_ingredients) &gt; 0 order by json_array_length(matching_ingredients) desc</textarea></p> ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1342430983  
Powered by Datasette · Queries took 1.194ms