0

We are trying to implement a module that utilizes the Connected GraphQL service (JssGraphQLService) in a JSS Angular Application. As our JSS App will be run in Integrated mode with SSR, is there any configuration that needs to be made in the Apollo Client in the GraphQLModule to run the Connected GraphQL query on the sever?

For example: the following query should be run on the server if ssr mode is on.

ngOnInit() {
    this.query$ = this.graphQLService.query({
      query: ComponentQuery,
      variables: {
           ... //custom variables
      },
      renderingContext: this.rendering
    });
  }

Any help is very much appreciated. If any clarifications needed please ask.

Thank you!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.