menu
Channels
Team
Posts
Members
Info

Apollo Server Caching

I can't get caching hints to work. I implemented exactly as mentioned here: https://www.apollographql.com/docs/apollo-server/performance/caching/#defining-cache-hints I can still see my resolvers being resolved by calling the rest data source every time. …

thumbsup
0
message-simple
2

Is there some how to model.js files read global variables created @ index.js ?

global.myvar cannot be read on the model.js - All of my model.js files is creating MSSQL connections. I'd like to create a single connection at index.js and set this as global. Any clue ?

thumbsup
0
message-simple
1

What is a Problem in Interface Example? Please Help me!!!

https://i.postimg.cc/BQCgY5df/Screen-Shot-2019-09-08-at-9-57-55-PM.png https://i.postimg.cc/0y2CLMsM/Screen-Shot-2019-09-08-at-9-58-13-PM.png

thumbsup
0
message-simple
2

Apollo Server: default cache isn't working

It seems to me that default InMemoryLRUCache isn't actually caching RESTDataSource requests. I see that "get" is getting called, but "set" is never called. I implemented my own cache based on the sample here: https://www.npmjs.com/package/apollo-server-caching Still "set" is…

thumbsup
0
message-simple
2

Beginner Questions: How nested calls are dealt with & Data structuring

I am fairly new to GraphQL and Apollo Server. right now I am doing my first (non-tutorial) project to help me learn it (and hopefully make something useful in the process). I am using AWS Lambda running Apollo server, integrating with DynamoDB. I have my schema (below), but I…

thumbsup
0
message-simple
3

Can I write Conditional Type?

let say I want to write signUp mutation that receives input Type SignUpInput, so users can either provide username and password or email and password. which in this case user can either provide email or username How will I write SignUpInput Type for both usecase without writing…

thumbsup
0
message-simple
3

Can Directive detect GraphQLScalarType?

I have a silly question, Can directive detect type of scalar, the detection function is on directive file?

thumbsup
0
message-simple
0

Apollo Server Lambda Connection to RDS MySQL

Hi, I'm looking for some guidance on managing connections to a RDS database. Problem is that I need to close connections after Apollo Server is done with its fetching, but I'm not sure WHERE to put the call to close the connection. I'm using the serverless-mysql package:…

thumbsup
0
message-simple
34

Feedback welcome: reorganization of Apollo Server documentation

Hi everyone! I’m Apollo’s friendly docs person. We’re putting the finishing touches on a reorganization of the documentation for Apollo Server, and we would love to hear your feedback before we flip the proverbial switch. Here’s a test site that shows the new categorization in…

thumbsup
2
message-simple
6

👋 Hello! Hoping to get some assistance with a couple apollo-server PRs.

https://github.com/apollographql/apollo-server/pull/3273 https://github.com/apollographql/apollo-server/pull/3268 Not sure what the expected review → merge → publish time is for these, but that first one's been around for ~1 day with no response, so figured I would ping y'all…

thumbsup
0
message-simple
0