gestalt-graphql-test

0.0.17 • Public • Published

gestalt-graphql

npm version

Gestalt GraphQL generates a GraphQL schema with resolution based on a definition using the GraphQL schema language.

import fs from 'fs';
import gestaltGraphQL from 'gestalt-graphql';
import gestaltPostgres from 'gestalt-postgres';
import importAll from 'import-all';
 
const schemaText = fs.readFileSync(`${__dirname}/schema.graphql`);
 
const {schema} = gestaltGraphQL(
  schemaText,
  importAll(`${__dirname}/objects`),
  importAll(`${__dirname}/mutations`),
  gestaltPostgres({databaseURL: 'postgres://localhost/example'}),
);

Readme

Keywords

none

Package Sidebar

Install

npm i gestalt-graphql-test

Weekly Downloads

0

Version

0.0.17

License

ISC

Last publish

Collaborators

  • jacobbubu