Socket
Book a DemoInstallSign in
Socket

@faststore/api

Package Overview
Dependencies
Maintainers
13
Versions
548
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@faststore/api

FastStore API Connect to your favorite ecommerce platform

Source
npmnpm
Version
1.5.13
Version published
Maintainers
13
Created
Source

Faststore

FastStore API

Connect to your favorite ecommerce platform

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://faststore.dev/reference/api/faststore-api

FAQs

Package last updated on 22 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts