Last active
October 22, 2021 00:30
-
-
Save yosun/5729f99f8a4b14598b73bf211938b8cf to your computer and use it in GitHub Desktop.
meetup api graphQL examples https://stackoverflow.com/questions/69654707/combining-a-looping-listing-query-with-specific-parameters-query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query($lat: Float,$lon: Float) { | |
findLocation(lat: $lat,lon: $lon) { | |
city | |
name_string | |
} | |
} | |
{"lat":37.774929,"lon":-122.419418} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query ($query: String!, $lat: Float!, $lon: Float!, $radius: Int!) { | |
keywordSearch( | |
filter: {query: $query, lat: $lat, lon: $lon, radius: $radius, source: EVENTS, eventType: PHYSICAL} | |
) { | |
count | |
edges { | |
node { | |
id | |
result { | |
... on Event { | |
title | |
dateTime | |
eventUrl | |
onlineVenue { | |
type | |
url | |
} | |
venue { | |
id | |
name | |
address | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
{ | |
"query": "knitting ", | |
"lat": 37.774929, | |
"lon": -122.419418, | |
"radius": 50 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment