{"action":"closed","issue":{"url":"https://api.github.com/repos/apollographql/apollo-server/issues/1486","repository_url":"https://api.github.com/repos/apollographql/apollo-server","labels_url":"https://api.github.com/repos/apollographql/apollo-server/issues/1486/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-server/issues/1486/comments","events_url":"https://api.github.com/repos/apollographql/apollo-server/issues/1486/events","html_url":"https://github.com/apollographql/apollo-server/issues/1486","id":347648891,"node_id":"MDU6SXNzdWUzNDc2NDg4OTE=","number":1486,"title":"new Apolloserver(args) fails typescript validation","user":{"login":"jfcieslak","id":4223504,"node_id":"MDQ6VXNlcjQyMjM1MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4223504?v=4","gravatar_id":"","url":"https://api.github.com/users/jfcieslak","html_url":"https://github.com/jfcieslak","followers_url":"https://api.github.com/users/jfcieslak/followers","following_url":"https://api.github.com/users/jfcieslak/following{/other_user}","gists_url":"https://api.github.com/users/jfcieslak/gists{/gist_id}","starred_url":"https://api.github.com/users/jfcieslak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfcieslak/subscriptions","organizations_url":"https://api.github.com/users/jfcieslak/orgs","repos_url":"https://api.github.com/users/jfcieslak/repos","events_url":"https://api.github.com/users/jfcieslak/events{/privacy}","received_events_url":"https://api.github.com/users/jfcieslak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-04T21:17:37Z","updated_at":"2018-08-04T21:26:48Z","closed_at":"2018-08-04T21:26:48Z","author_association":"NONE","body":"<!--**Issue Labels**\r\n\r\nWhile not necessary, you can help organize our issues by labeling this issue when you open it.  To add a label automatically, simply [x] mark the appropriate box below:\r\n\r\n- [ ] has-reproduction\r\n- [ ] feature\r\n- [ ] docs\r\n- [ ] blocking\r\n- [ ] good first issue\r\n\r\nTo add a label not listed above, simply place `/label another-label-name` on a line by itself.\r\n-->\r\n`/label bug`\r\n\r\nI am instantiating `apollo-server-express` to run it on firebase function (using typescript).\r\nWhile the server with bellow config runs correctly, typescript is signaling error for `new ApolloServer({ typeDefs, resolvers })` – Expected 0 arguments, but got 1.\r\n\r\nreproduction below:\r\n```\r\nimport * as functions from 'firebase-functions'\r\nimport {ApolloServer, gql} from 'apollo-server-express'\r\nimport * as express from 'express'\r\n\r\n// Construct a schema, using GraphQL schema language\r\nconst typeDefs = gql`\r\n  type Query {\r\n    hello: String\r\n  }\r\n`\r\n\r\n// Provide resolver functions for your schema fields\r\nconst resolvers = {\r\n\tQuery: {\r\n\t\thello: () => 'Hello world!',\r\n\t},\r\n};\r\n\r\nconst server = new ApolloServer({ typeDefs, resolvers })\r\n\r\nconst app = express()\r\nserver.applyMiddleware({ app })\r\n\r\nexport const api = functions.https.onRequest( app )\r\n```"}}
{"actor":{"display_login":"jfcieslak"}}