@graphly/composer
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@graphly/composer

Compose GraphQL schema with TypeScript reflection.

This package is a part of Graphly project and uses by @graphly/type to convert TypeScript classes to GraphQL schema.

Install

yarn add @graphly/composer

Usage

import {Composer} from "@graphly/composer";

const composer = new Composer({
    basePath: __dirname,
    schemaPath: "Schema/TestSchema.ts",
    verbose: false,
});

const project = composer.compose();

// convert project to GraphQL format
console.log(project.toGraphQL());

// convert project to GraphQLSchema
console.log(project.toSchema());

Links

Read more about this project.

License

MIT

/@graphly/composer/

    Package Sidebar

    Install

    npm i @graphly/composer

    Weekly Downloads

    1

    Version

    0.1.2

    License

    none

    Unpacked Size

    160 kB

    Total Files

    184

    Last publish

    Collaborators

    • izatop