newrelic / newrelic-client-go

New Relic Client for the Go programming language
https://newrelic.github.io/observability-as-code
Apache License 2.0
75 stars 95 forks source link

issue in graphQL query used in getWorkflows API #1190

Closed akgoel18 closed 4 months ago

akgoel18 commented 4 months ago

Description

When we make a client.Workflows.getWorkflows() API call, it returns a maximum of 250 workflows per request along with a nextCursor for fetching additional workflows. However, the nextCursor is not working for retrieving the remaining workflows.

Current behavior

Returning first 250 workflows only even when giving nextCursor as input.

Expected behavior

It should return next set of workflows.

Steps To Reproduce

graphQL query is not taking cursor value in input changes:

image

Debug Output (if applicable)

If applicable, add associated log output to help explain the problem.

Additional Context

Add any other context about the problem here.

References or Related Issues

Are there any other related GitHub issues (open or closed) or Pull Requests that should be linked here?