1.0.0 • Published 8 months ago

groqfmt-nodejs v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

groqfmt-nodejs

A Node.js wrapper for Sanity´s Go implementation.

Usage

import { format } from 'groqfmt-nodejs'


const query = `
      *[_type == 'page'] {
            mainSection {
          pageTitle,
          
    gallery[] {}
    `

try {
    const queryFormatted = await format(query);
    // ...
} catch(e) {
    // ...
}
1.0.0

8 months ago

0.0.5

8 months ago

0.0.6

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

9 months ago

0.0.1

9 months ago