are there any examples of graphQL streams that imp...
# singer-tap-development
p
are there any examples of graphQL streams that implement pagination using the SDK? i need to pass the cursor to my query as described here but wasn’t sure if there’s a specific way to do this or method to override with the SDK
okay I think I’m part of the way there - i’m using a variable to pass the latest cursor to the query using the example here but am unsure how to handle the first run where there isn’t a start cursor. in that scenario i see this error because the variable is null
Copy code
{'errors': [{'message': 'Variable $afterCursor of type String! was provided invalid value', 'locations': [{'line': 1, 'column': 8}], 'extensions': {'value': None, 'problems': [{'path': [], 'explanation': 'Expected value to not be null'}]}}]}
nvm figured it out. passing an empty string as the variable value when there isn’t a token instead of
None
works just fine