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"}}}
Summary of how the api schema works for
queries
:When you make a request to an object with a type the schema shows fields as required
note: This does not mean all of them are required you are just required to have a single one of those values present.
You need to keep nesting down until the required field is a primitive type or has all fields not required.
note: If you fail to do this you will get an error and your entire query will not work.