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

Remove prototype schema #41

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Remove prototype schema #41

wants to merge 1 commit into from

Conversation

kdawgwilk
Copy link
Collaborator

I think we were incorrectly using the prototype schema to define directives but if we move them directly to the schema we get these errors. This may be a bug in absinthe or a lack in our understanding of the purpose of the prototype schema

== Compilation error in file test/absinthe/federation/schema_test.exs ==
** (Absinthe.Schema.Error) Compilation failed:
---------------------------------------
## Locations
/Users/kwilk/Sources/github/DivvyPayHQ/absinthe_federation/lib/absinthe/federation/schema/directive.ex:30

Unknown directive `extends'.
---------------------------------------
## Locations
/Users/kwilk/Sources/github/DivvyPayHQ/absinthe_federation/lib/absinthe/federation/schema/directive.ex:30

Unknown directive `external'.
---------------------------------------
## Locations
/Users/kwilk/Sources/github/DivvyPayHQ/absinthe_federation/lib/absinthe/federation/schema/directive.ex:30

Unknown directive `key'.


    (absinthe 1.7.0) lib/absinthe/schema.ex:366: Absinthe.Schema.__after_compile__/2
    (stdlib 3.17) lists.erl:1267: :lists.foldl/3
    test/absinthe/federation/schema_test.exs:4: (module)
    (elixir 1.13.2) lib/kernel/parallel_compiler.ex:455: Kernel.ParallelCompiler.require_file/2
    (elixir 1.13.2) lib/kernel/parallel_compiler.ex:348: anonymous fn/5 in Kernel.ParallelCompiler.spawn_workers/7

@kdawgwilk kdawgwilk added the enhancement New feature or request label Feb 15, 2022
@kdawgwilk kdawgwilk self-assigned this Feb 15, 2022
@kdawgwilk
Copy link
Collaborator Author

@benwilson512 Hopefully this helps explain what we are running into. We could use some clarity on if we are misusing the prototype schema

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

Successfully merging this pull request may close these issues.

1 participant