0.0.4 • Published 3 years ago

@adobe/parliament-source-jsonschema v0.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

parliament-source-jsonschema

Ingests JSON Schema files into the GraphQL database.

Install

yarn add @adobe/parliament-source-jsonschema

How to use

module.exports = {
  plugins: [
    {
      resolve: `@adobe/parliament-source-jsonschema`,
      options: {
        path: `${process.env.LOCAL_PROJECT_DIRECTORY}`,
        patterns: `**/*`,
      },
    },
  ],
};

How to query

{
  allParliamentJsonSchema {
    edges {
      node {
        id
        _id
        _schema
        slug
        title
        description
        properties
        _defs
      }
    }
  }
}

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.