In GraphQL how to I query for a random record

Viewed 3532

Let's say I have a Quote type. I'd like to be able to retrieve a random quote. I can get all the quotes using the following query:

query {
    allQuotes {
      id
      text
    }
  }

How do I get a random record from the Quotes

1 Answers
Related