@fluid-experimental/tree-graphql
TypeScript icon, indicating that this package has built-in type declarations

1.3.7 • Public • Published

@fluid-experimental/tree-graphql

A prototype package which uses the @graphql-codegen library to automatically generate graphql types and resolvers that can read a SharedTree (see @fluid-experimental/tree) via a given graphql schema.

Codegen

This repo includes an example graphql schema called 'Pizza' in the './src/graphql-schemas' folder. After running codegen, an associated output file will be generated in the './src/graphql-generated' folder. This behavior is customized by a graphql-codegen plugin called SharedTreePlugin, and the codegen step itself is configured via the codegen.yml file in the repo root.

Usage

After running npm run refresh, run npm run codegen in this package, followed by a build. Then the tests in SharedTreeQuerier.tests.ts can be run.

Readme

Keywords

none

Package Sidebar

Install

npm i @fluid-experimental/tree-graphql

Weekly Downloads

5

Version

1.3.7

License

MIT

Unpacked Size

157 kB

Total Files

66

Last publish

Collaborators

  • ms-fluid-bot