I'm trying to use a custom error with apollo-server and it seems that my custom error has a property (code) that isn't available from within formatError.  import ExtendableError from 'es6-error'  export default class MyError extends E...
I have a client server and an API, both using Apollo. When the user logs in with Facebook I want to send a token to my client server which will then be appended to the headers of every request made to the API. Without using sessions.  Here's how...
I have an Apollo GraphQL server and I have a mutation that deletes a record. This mutation receives the UUID of the resource, calls a REST (Ruby on Rails) API and that API just returns an HTTP code of success and an empty body (204 No Content) when t...
I'm wondering if there's any consensus out there with regard to how best to handle GraphQL field arguments when using Dataloader. The batchFn batch function that Dataloader needs expects to receive Array<key> and returns an Array<Pro...
I read through the apollo-server-tutorial and I'm trying to replicate it with only mongodb - no sqllite. I'm coming from meteor so I'm learning async & mongoose while I'm at it.  My mutation for addAuthor() works correctly (I see...
Previously, I just typed my input KeyInput as mode: String!, and I'm looking to change the type from String! to a custom enum.    I have the tried following schema:  enum Mode= {     test     live }  input KeyInput = {     mode: Mode! }  type Key...
I'm running an express based apollo graphQL server using apollo-server-express.  import express from 'express' import cors from 'cors' import server from './graphql/schema'  app.use(cors()) server.applyMiddleware({ app, pa...
I have a GraphQL/Apollo server using Sequelize/mysql. My GraphQL types (Employee, Contractor) each implement a Person interface. My db model contains an employee, contractor, and events table. I would like my Person Type to have a "has many"...
I'm aiming to create an GraphQL API for my website, with Koa and Apollo. When I start the app on heroku, it stops after 1 minute, because it can't bind to $PORT : Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 se...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.