Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@crosscopy/graphql-schema

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crosscopy/graphql-schema

GraphQL Schema For CrossCopy

latest
Source
npmnpm
Version
0.1.4-pre-alpha.3
Version published
Maintainers
1
Created
Source

crosscopy-graphql-schema

GraphQL Schema Definitions for CrossCopy.

All code are generated into TypeScript from graphql files using codegen.

Usage

import { requests, resolver, typeDefs } from "@crosscopy/graphql-schema@latest";

// The resolver is not resolver implementation, but types for resolver.

const {getSdk} = requests;
const gqlClient = new GraphQLClient(this.setting.graphqlUrl);
const sdk = getSdk(gqlClient);
sdk
    .login({email, password})
    .then(async (res) => {...})

const schema = makeExecutableSchema({
  typeDefs,
  resolversImplementation // this needs to be implemented
})

Keywords

graphql

FAQs

Package last updated on 28 Jan 2023

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