You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to set up a proof-of-concept app with Mesh and Hive.
What I want to do is have Mesh fetch the schema for my Hygraph API from Hive, then report usage stats to Hive when I send a GraphQL request to Mesh.
flowchart TD
subgraph "api"
X((Web)) -->|gql| Y[mesh] -->|gql| C[(Hygraph)]
Y -->|gql schema| D[(Hive)]
end
Loading
My .meshrc.yaml:
plugins:
- hive:
token: '{env.HIVE_ACCESS_TOKEN}'sources:
- name: Hygraphhandler:
graphql:
# URL needs to have `.graphql` extension to tell the handler it is a GraphQL Schemasource: https://cdn.graphql-hive.com/artifacts/v1/my-project-uuid/sdl?ext=.graphqlschemaHeaders:
X-Hive-CDN-Key: "{env.HIVE_CDN_KEY}"# The actual endpoint of the serviceendpoint: "{env.HYGRAPH_READ_API}"
I am deploying the Mesh gateway to AWS Lambda.
Mesh seems to be working, I can send GraphQL requests to my Mesh server and it correctly proxies them to my Hygraph API.
However, I don't see any usage statistics in Hive.
Am I missing some config here in order for Mesh to send usage stats?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to set up a proof-of-concept app with Mesh and Hive.
What I want to do is have Mesh fetch the schema for my Hygraph API from Hive, then report usage stats to Hive when I send a GraphQL request to Mesh.
My .meshrc.yaml:
I am deploying the Mesh gateway to AWS Lambda.
Mesh seems to be working, I can send GraphQL requests to my Mesh server and it correctly proxies them to my Hygraph API.
However, I don't see any usage statistics in Hive.
Am I missing some config here in order for Mesh to send usage stats?
Beta Was this translation helpful? Give feedback.
All reactions