graphql-hive / graphql-hive/console

Base schema (schema extensions) and Schema Stitching project not working

Open
#5,927 0 comments 0 reactions 0 assignees View on GitHub
bug registry
Dominant language
TypeScript
Stars
483
Forks
145
Avg merge
2d 5h
Merged PRs (30d)
65

Description

I'm having trouble using the Base Schema/Schema Exension part of Hive, with a **Schema Stitching** project

I want to use it to define some custom directives, as well as some shared scalars and types.
As an example, I add this to the Base Schema and hit save:
```
directive @mycustom on FIELD_DEFINITION
scalar DateTime
```

With a schema like (the rest omitted for brevity):
```
type User {
id: ID!
created: DateTime!
name: String! @mycustom
}
```

I get errors both from `hive schema:check` and `hive schema:publish` :

```
✖ Detected 2 errors

- Unknown directive @mycustom.
- Unknown type DateTime.
```

If I create a **Monolithic Schema** project, I can **publish just fine** with the same inputs. `hive schema:check` does however give me the same error in both project types.

Am I doing something wrong?

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.