Skip to content
Discussion options

You must be logged in to vote

Sorry for the late reply, and a very vague reply to your issue. You have to create a custom argument in this case ( orderBy ) in your query.

Example:

const variables = {
   query: "example",
   first: 10,
   orderBy: {
       field: "Updated_at",  // Use your desired field for sorting
       direction: "DESC"  // ASC - ascending
   }
}

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Gasay-Liza
Comment options

@Gasay-Liza
Comment options

@stolenfallen1
Comment options

Answer selected by Gasay-Liza
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.
2 participants