# All channels
Sachin D. Shinde@sachin-shinde
Validate & Authorize Subscriptions?
Just getting started with Subscriptions and confused how to handle validation & authorization. With Queries and Mutations, the Resolver functions can return Promises, which allows us to asynchronously validate the input and perform authorization and reject the Query or Mutation…
Cannot check whether a graphQL error is instance of subtype
I've got an ApolloPlugin that needs to check for the concrete type of the graphQL error passed in. However, it seems that the underlying type is never passed in, only the super type. Example: I need to be able to check the actual concrete error type in order to decide whether to…
Issue Exposing GraphQL In Fastify With TypeDefs Built With `openapi-to-graphql`
I have a working Fastify REST server that exposes a standards-compliant OpenAPI contract, and I was looking to additionally add GraphQL support via Apollo. https://www.npmjs.com/package/apollo-server-fastify I worked through the setup directions for the above module, and…
How to use mergeSchemas for remote schemas with Apollo server?
Hi everyone. I have some problems with merging remote schemas. As a base I've taken the Apollo GraphQL package referenced in the tutorial (https://www.apollographql.com/docs/tutorial/introduction/). I want to prototype the following architecture: • 2 services • 1 gateway that…
How to write a mutation resolver that handles image AND form data upload stream?
So, currently I’m able to successfully upload an image through the client to an S3 bucket. However, my question is, how would I go about including additional form fields, such as an accompanying title and/or body field, with the existing image file? The server component…
How can I share common fields between multiple types definitions?
I have two type definitions that share multiple fields, I would like to understand what is the best way to avoid repeating myself and reuse the common fields across the type definitions. an example of two type definitions with multiple common fields can be found below: type…