https://www.meetup.com/api/guide/#graphQl-guide
The out of the box example does not work.
However, this version is works:
query='query { self { id name } }'
YOUR_TOKEN='put-a-token'
curl -X POST https://api.meetup.com/gql \
-H "Authorization: Bearer $YOUR_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<EOF
{"query": "$query"}
EOF
expected output:
{"data":{"self":{"id":"1234567","name":"Example User"}}}
query upcoming events:
query='query { self { id name upcomingEvents { pageInfo { startCursor } count edges { node { title } } } } }'