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

[bug] dynamic schema example is not running for me #74

Open
xoac opened this issue Oct 13, 2023 · 1 comment
Open

[bug] dynamic schema example is not running for me #74

xoac opened this issue Oct 13, 2023 · 1 comment

Comments

@xoac
Copy link
Contributor

xoac commented Oct 13, 2023

While testing static schema I found that dynamic schema don't run correct for me. Please check item #73; the dynamic and static start scripts are swapped.

version: async-graphql v6.0.8

Error:

error[E029]: Encountered 1 build error while trying to build a supergraph.

Caused by:
    PROVIDES_ON_NON_OBJECT_FIELD: [reviews] Invalid @provides directive on field "Review.product": field has type "String!" which is not a Composite Type
    
        The subgraph schemas you provided are incompatible with each other. See https://www.apollographql.com/docs/federation/errors/ for more information on resolving build errors.

error[E029]: Encountered 1 build error while trying to build a supergraph.

Caused by:
    PROVIDES_ON_NON_OBJECT_FIELD: [reviews] Invalid @provides directive on field "Review.product": field has type "String!" which is not a Composite Type
    
        The subgraph schemas you provided are incompatible with each other. See https://www.apollographql.com/docs/federation/errors/ for more information on resolving build errors.
@urkle
Copy link

urkle commented Nov 9, 2023

looks like definition for the product field is set as String in the dynamic demo instead of "Product". ( line 153).

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

2 participants