facebook / facebook/relay

Relay Compiler NOT including clientSchema.graphql extensions

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

Description

I have setup the following `clientSchema.graphql` for my application but it seems to throw an error when I run `relay-compiler --src ./app --schema ./app/schema.graphql`:

```
extend type JournalEntry {
local_attachment_path: String
}

extend type Journal {
local_attachment_path: String
}
```

Then when I run the compile command, I get:

```
Encountered 5 errors:
- GraphQLError: Unknown field 'local_attachment_path' on type 'Journal'.
- GraphQLError: Unknown field 'local_attachment_path' on type 'JournalEntry'.
- GraphQLError: Unknown field 'local_attachment_path' on type 'JournalEntry'.
- GraphQLError: Unknown field 'local_attachment_path' on type 'Journal'.
- GraphQLError: Unknown field 'local_attachment_path' on type 'Journal'.
```

Below is my relay environment version:

```
"react-relay": "^10.1.0",
"relay-hooks": "^3.7.0",
"relay-runtime": "^10.1.0",
"babel-plugin-relay": "^10.1.0",
"relay-compiler": "^10.1.0",
"relay-hooks": "^3.7.0",
```

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.