@faststore/api
TypeScript icon, indicating that this package has built-in type declarations

3.45.0 • Public • Published

Faststore

FastStore API

Connect to your favorite ecommerce platform

Installation

From the command line in your project directory, run pnpm add @faststore/api.

pnpm add @faststore/api

Usage

With servers like express:

import { execute } from 'graphql'
import { getSchema } from '@faststore/api'

import express from 'express'

const app = express()

app.get('/graphql', async (req, res) => {
  const { query, operationName, variables } = req.body

  const result = await execute({
    schema: await getSchema(),
    variableValues: variables,
    operationName,
  })

  res.status(200)
  res.send(result)
})

Docs

For more information, please refer to our documentation: https://v1.faststore.dev/reference/api/faststore-api

Readme

Keywords

none

Package Sidebar

Install

npm i @faststore/api

Weekly Downloads

6,276

Version

3.45.0

License

MIT

Unpacked Size

1.25 MB

Total Files

667

Last publish

Collaborators

  • emersonlaurentino
  • guieevc
  • marcos_vtex