Data model graphqlApi

i have one graphql api which builder provides after creating one data model.
in that model contains reference value so how to fetch data of refence value field in graphql using includeRefs or enrichtrue also wanted to sort data using one filed
give me the syntax if any

Hello @AniveshSingh700,

To include the reference model values, you can use enrich: true in your GraphQL query like this:

query {
  blogArticle(options: { enrich:true}) {
    content
  }
}

For sorting, you can use the sort keyword with a value of 1 for ascending and -1 for descending order like this:

query {
  blogArticle(options: { enrich:true},  sort: {name: 1}) {
    name
  }
}