Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rickardgranberg opened this issue Nov 13, 2024 · 0 comments

Comments

@rickardgranberg
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant