Skip to content
graphql-schema / 0.1.3-pre-alpha.3

graphql-schema 0.1.3-pre-alpha.3

Install from the command line:
Learn more about npm packages
$ npm install @crosscopy/graphql-schema@0.1.3-pre-alpha.3
Install via package.json:
"@crosscopy/graphql-schema": "0.1.3-pre-alpha.3"

About this version

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
})

Details


Assets

  • graphql-schema-0.1.3-pre-alpha.3.tgz

Download activity

  • Total downloads 6
  • Last 30 days 0
  • Last week 0
  • Today 0