groqfmt-nodejs
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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) {
    // ...
}

Dependents (3)

Package Sidebar

Install

npm i groqfmt-nodejs

Weekly Downloads

23

Version

1.0.1

License

MIT

Unpacked Size

3.04 MB

Total Files

11

Last publish

Collaborators

  • ndotmdot