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

NestJs resolvers not working when GraphQL schema property is used #288

Closed
juicycleff opened this issue Jun 8, 2019 · 4 comments
Closed

Comments

@juicycleff
Copy link

NestJs resolvers not working when schema is property used. The resolvers don't work.

@Injectable()
export class GraphqlOptions implements GqlOptionsFactory {
  createGqlOptions(): Promise<GqlModuleOptions> | GqlModuleOptions {
    return {
      path: '/graphql',
      schema:  buildFederatedSchema([
        typeDefsHubType, typeDefsHubs,
      ]),
      installSubscriptionHandlers: true,
      resolverValidationOptions: {
        requireResolversForResolveType: false,
      },
      playground: {
        settings: {
          'editor.theme': 'light',
        },
      },
    };
  }
}
@marcus-sa
Copy link
Contributor

marcus-sa commented Jun 20, 2019

I'm trying to utilize @apollo/federation as well, but without any luck so far.
I don't think that @nestjs/graphql supports the scalar directives of @apollo/federation, because even the resolver interfaces are different.
E.g the custom __resolveReference found at:
https:/apollographql/federation-demo/blob/00f5119040e1b0ffba5adf220a585a7b83b1fbd4/services/accounts/index.js#L23

https://www.apollographql.com/docs/apollo-server/federation/implementing/

@marcus-sa
Copy link
Contributor

@kamilmysliwiec
Copy link
Member

Fixed in 6.3.1 :)

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants