1.0.1 • Published 12 months ago

groqfmt-nodejs v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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.1

12 months ago

1.0.0

2 years ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago