facebook / facebook/relay

Support JSON Schema

Open
#3,909 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

As I am upgrading to v13 relay compiler I need to add this code to my relay.config.js

```javascript

const fs = require("fs");
const { buildClientSchema, printSchema } = require("graphql/utilities");

const schema = buildClientSchema(require("./data/schema.json").data);
fs.writeFileSync(`./data/schema.graphql`, printSchema(schema));

```

both relay modern and relay classic support json schema, this seems like a breaking change

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.