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

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

Package Sidebar

Install

npm i groqfmt-nodejs

Weekly Downloads

101

Version

1.0.0

License

MIT

Unpacked Size

7.23 kB

Total Files

10

Last publish

Collaborators

  • ndotmdot