magento-graphql-lib

1.0.12 • Public • Published

Foobar

This library can help you use graqlph to communicate with magento.

Installation

npm i magento-graphql-lib

Usage

const { BatchGraphql, InitGraphqlConnect, GraphQl } = require("magento-graphql-lib")

InitGraphqlConnect("http://magentoserver")

async function fun() {
    //default store code
    const rs1 = await BatchGraphql().Querys(SIGN_IN, { email: "test@test.com", password: "123123123" })
    console.log(rs1)
    //muit store code
    const rs2 = await BatchGraphql(["store1","store2"]).Querys(SIGN_IN, { email: "test@test.com", password: "123123123" })
    console.log(rs2)
}

fun()

Readme

Keywords

none

Package Sidebar

Install

npm i magento-graphql-lib

Weekly Downloads

1

Version

1.0.12

License

ISC

Unpacked Size

28.9 kB

Total Files

6

Last publish

Collaborators

  • jackvscode