You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever you try to stitch a remote schema which makes use of graphql-modules you will get TypeError: Cannot use 'in' operator to search for 'Remote_User' in undefined" for every query which makes use of the remote.
Run examples/accounts-boost: docker-compose up -d && pnpm start:micro
Go to http://localhost:4000/ and run the following query: { Remote_getUser { id } }
Watch for the error
Expected behavior
Stitching should work.
Environment:
OS: Arch Linux
@graphql-modules 1.4.4:
NodeJS: v14.18.0
Additional context
The previous example is so simple that we're not basically stitching anything, just using the remote schema as is:
constaccounts=awaitaccountsBoost({tokenSecret: 'terrible secret',micro: true,// setting micro to true will instruct `@accounts/boost` to only verify access tokens without any additional session logicschemaBuilder: ()=>stitchSchemas({subschemas: [remoteSubschema],}),});
Yet this is enough to trigger the error. The problem has already been fixed in latest GraphQL Tools, but unfortunately @graphql-modules ships ancient versions:
but unfortunately that could potentially regress elsewhere.
I would feel more confident to use v1 in accounts-js if it shipped with official support for graphql-tools v8 rather than force-overriding its dependencies: accounts-js/accounts#1148
The text was updated successfully, but these errors were encountered:
Describe the bug
Whenever you try to stitch a remote schema which makes use of graphql-modules you will get
TypeError: Cannot use 'in' operator to search for 'Remote_User' in undefined"
for every query which makes use of the remote.To Reproduce
Steps to reproduce the behavior:
pnpm install && pnpm compile
docker-compose up -d && pnpm start:micro
http://localhost:4000/
and run the following query:{ Remote_getUser { id } }
Expected behavior
Stitching should work.
Environment:
@graphql-modules 1.4.4
:Additional context
The previous example is so simple that we're not basically stitching anything, just using the remote schema as is:
Yet this is enough to trigger the error. The problem has already been fixed in latest GraphQL Tools, but unfortunately
@graphql-modules
ships ancient versions:You can easily fix this with pnpm overrides:
but unfortunately that could potentially regress elsewhere.
I would feel more confident to use v1 in accounts-js if it shipped with official support for graphql-tools v8 rather than force-overriding its dependencies: accounts-js/accounts#1148
The text was updated successfully, but these errors were encountered: