Hi. How can I make the below graphql return an end...
# ask-community
j
Hi. How can I make the below graphql return an end cursor? The example in the documentation shows how to use
corsor
as an argument, but not how to obtain one from the graphql results.
Copy code
query {
                assetsOrError(limit: 20){
                __typename
    ... on AssetConnection {
      nodes{
        key {
          path
        }
        assetMaterializations(limit:3){ 
          runId
        }
        definition {
          jobNames
        }
      }
    }
  }
}
dagster bot resolve to issue 1
o
hi @jasono! looks like right now the object that's returned here does not contain the updated cursor. I'll create an issue for that functionality, but one thing to note is that you can probably recreate this cursor yourself from the response (as its value should be the JSON representation of the last AssetKey in the response)
@Dagster Bot issue Return an updated cursor from the AssetConnection object (assetsOrError query)
d