Mohammad Asif cf937194cb Removed un-waned things 1. | 5 months ago | |
---|---|---|
.. | ||
lib | 5 months ago | |
src | 5 months ago | |
LICENSE | 5 months ago | |
README.md | 5 months ago | |
package.json | 5 months ago |
This module exports a single function that can be called with an ES2015 template string to signal that it represents a GROQ-query.
The result will be the exact same string as the input, - this is currently helpful for getting syntax highlighting in editors, but in the future it might also parse and validate queries, strip unncessary whitespace and similar.
Pairs well with vscode-sanity!
npm install --save groq
import groq from 'groq'
const query = groq`*[_type == 'products'][0...10]`
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches.
To get started with Sanity, please head over to our getting started guide
MIT-licensed. See LICENSE.