New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@parse-graphql/schema

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parse-graphql/schema

**WIP**

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by25%
Maintainers
1
Weekly downloads
 
Created
Source

Parse GraphQL Schema npm (scoped) CircleCI Parse GraphQL Logo

WIP

Project Goals

The goal of this project is to generate a GraphQL schema that supports most of the Parse API, without having much support for customization in this library. A lot of customization can be done on the parse-server side, or the generated types can be imported and you can add them to your own custom schema.

Install

yarn add @parse-graphql/schema

or

npm install --save @parse-graphql/schema

Usage

This library can be used directly and served over any protocol, but you might want to start with parse-graphql-express.

Example usage:

import generateSchema from '@parse-graphql/schema';
import { graphql } from 'graphql';

const schema = generateSchema({
  appId: "foo",
  masterKey: "bar",
  serverURL: "https://foobar.com/parse"
});

const query = `
  query {
    someClass {
      name
    }
  }
`;

graphql(schema, query).then(result => {
  console.log(result);
});

To make authenticated requests, pass in a context with property sessionToken set to the sesion token of the current user:

graphql(schema, query, null, { sessionToken })
  .then(result => {
    // ...
  });

FAQs

Package last updated on 20 Apr 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc