Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Hande variables #39

Merged
merged 2 commits into from
Jun 12, 2024
Merged

fix: Hande variables #39

merged 2 commits into from
Jun 12, 2024

Conversation

ChaituVR
Copy link
Member

Previously we were ignoring variables passed into the body, now that we use other subgraphs, we need to pass variables as well

How to test:

Pass variables to subgraphs

curl --location 'http://localhost:3000/subgraph/arbitrum/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH' \
--header 'accept: application/json, multipart/mixed' \
--header 'accept-language: en-US,en;q=0.9' \
--header 'content-type: application/json' \
--data '{"query":"query Domain($id: ID!) {\n  account(id: $id) {\n    domains {\n      name\n      expiryDate\n    }\n    wrappedDomains {\n      name\n      expiryDate\n    }\n  }\n  domains(block:{number: 20074255}){\n    id\n  }\n}","variables":{"id":"0x24f15402c6bb870554489b2fd2049a85d75b982f"}}'

@ChaituVR ChaituVR requested a review from wa0x6e June 12, 2024 07:47
@ChaituVR ChaituVR merged commit f60e0af into main Jun 12, 2024
2 checks passed
@ChaituVR ChaituVR deleted the handle-variables branch June 12, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant