support for fastify version 4
### Issue Description

https://github.com/fastify/fastify/issues/4168

![image](https://github.com/apollographql/apollo-server/assets/52112750/938385d8-ba87-48d0-ba89-b2e9385d0f49)


### Link to Reproduction

https://github.com/fastify/fastify/issues/4168

### Reproduction Steps

_No response_