Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

GraphQL Admin API Support #100

@montalvomiguelo

Description

@montalvomiguelo

What if we had a middleware to securely proxy graphql request from our apps to Shopify?

server side

// mounts '/auth' off of '/shopify'
app.use('/shopify', routes);

+ // mounts '/graphql'
+ app.use(proxy());

client side

fetch('/graphql', {
  method: 'POST',
  credentials: 'include',
  body: JSON.stringify({ query: '{ shop { name } }' }),
})
  .then(res => res.json())
  .then(res => console.log(res.data));

Like @shopify/koa-shopify-graphql-proxy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions