async-graphql / examples

217 stars 54 forks source link

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

Open xoac opened 10 months ago

xoac commented 10 months ago

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 commented 9 months ago

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