Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2021 18:59
What would you like to do?
curl '' -X POST -H 'x-hasura-admin-secret: dEaDbEEF' --data-raw '{"query":"query MyQuery {\n tzprofiles(distinct_on: account, limit: 100000) {\n valid_claims\n account\n }\n}\n","variables":null,"operationName":"MyQuery"}' > /tmp/hasura.json
cat /tmp/hasura.json | jq '.data.tzprofiles[] | .account as $account | select(.valid_claims[][1] | contains($account) | not)'
cat /tmp/hasura.json | jq '.data.tzprofiles[] | .account as $account | select(.valid_claims[][1] | contains("") or contains("BasicProfile") or contains("EthereumAddressControl") or contains("EthereumControl") | not)'
Copy link

As designed by @sbihel as part of review of TZP, December 2021. See Spruce blog post for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment