@faststore/api
v3.0.152
Published
<p align="center"> <a href="https://faststore.dev"> <img alt="Faststore" src="../ui/static/logo.png" width="60" /> </a> </p> <h1 align="center"> FastStore API </h1> <p align="center"> <strong> Connect to your favorite ecommerce platform
Downloads
15,788
Keywords
Readme
Installation
From the command line in your project directory, run yarn add @faststore/api
.
yarn 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