brightalley / lighthouse-apollo

Integration between Laravel Lighthouse and Apollo Studio
8 stars 3 forks source link

Which API Key? #11

Open dylmye opened 1 year ago

dylmye commented 1 year ago

Thanks for this great package! Where should I get the API key to use with this package?

I tried using an API key from the supergraph and I got this error message:

Unexpected response code 400 when sending tracing to Apollo Studio: This usage was reported using a Cloud Supergraph API key but was reported from Apollo Server or a self-hosted router. Please ensure that your server is configured with the appropriate Graph API key

I tried using an API key from my Apollo Studio user and I got this error message:

Unexpected response code 406 when sending tracing to Apollo Studio: Please check your API key in the Engine configuration

Thank you in advance!

pyrou commented 1 year ago

Hi,

APOLLO_KEY should be filled with the API key you get from https://studio.apollographql.com under Settings > This graph > API Keys

dylmye commented 1 year ago

Thanks! It would be great if it was documented somewhere :)