https://github.com/nubank/prismatic-graphql
Library to create Prismatic schema from GraphQL queries
https://github.com/nubank/prismatic-graphql
Last synced: 4 days ago
JSON representation
Library to create Prismatic schema from GraphQL queries
- Host: GitHub
- URL: https://github.com/nubank/prismatic-graphql
- Owner: nubank
- License: apache-2.0
- Created: 2020-08-11T02:29:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T20:18:30.000Z (over 1 year ago)
- Last Synced: 2025-05-07T23:57:47.577Z (8 months ago)
- Language: Clojure
- Size: 38.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# prismatic-graphql
A Clojure library designed to create Prismatic Schemas from GraphQL query definitions.
## Usage
```clojure
(require '[prismatic-graphql.core :as prismatic.graphql])
(def schema (slurp "./my-graphql-schema.graphql"))
(def query (slurp "./my-graphql-query.graphql"))
(prismatic.graphql/query->data-schema schema query)
(prismatic.graphql/query->variables-schema schema query)
```
## License
Copyright © 2020 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.