Syntax highlighting
This module exports a groq
helper function to assist with GROQ syntax highlighting and eslint rules. Make sure to install the VSCode extension - and enjoy!
It is globally available throughout your project (both within your server routes and your Vue app) via auto-imports.
Example
<script>// In VS Code this will be highlightedconst query = groq`*[_type == "article"][0].title`</script>