# Data model graphqlApi

**URL:** <https://forum.builder.io/t/data-model-graphqlapi/5358>\
**Category:** CMS\
**Tags:** visual-editor\
**Created:** [April 12, 2024, 5:54am UTC](https://forum.builder.io/t/data-model-graphqlapi/5358 "2024-04-12T05:54:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [April 12, 2024, 10:24am UTC](https://forum.builder.io/t/data-model-graphqlapi/5358/2 "2024-04-12T10:24:49Z")

</div>

Hello @AniveshSingh700,

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

```auto
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:

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

```

> [@Graphql Sub Reference Data Retrieve](https://forum.builder.io/t/graphql-sub-reference-data-retrieve/4297):
>
> Hi, I want to get all data from [builder.io](http://builder.io) to my Gatsby project through Graphql. I am running following query [image] this blog field have reference to other models (i am only getting their schema not values) (i.e. relatedCollection, contributor) And getting result is: I want to run query like this : query LandingPageData { ContentfulData: contentfulLandingPage { blog { title overview contributor{ name } } } } }

> [@Not receiving updated responce from Graphql](https://forum.builder.io/t/not-receiving-updated-responce-from-graphql/4899/5):
>
> Hello @SrittamMishra, Yes, you can certainly filter list or articles based on input fields e.g. query { page(query: { data: { title: "someValue" }}, limit: 1) { data { someProperty } } }

> **[GraphQL Content API](https://www.builder.io/c/docs/graphql-api)**
>
> Builder is an AI-Powered Visual Development Platform that helps teams generate, iterate, and optimize web and mobile experiences in seconds instead of sprints.

---

_[View the full topic](https://forum.builder.io/t/data-model-graphqlapi/5358)._
