Watch our biggest AI launch event

Announcing Visual Copilot - Figma to production in half the time

Builder.io logo
Contact Sales
Platform
Developers
Contact Sales

Blog

Home

Resources

Blog

Forum

Github

Login

Signup

×

Visual CMS

Drag-and-drop visual editor and headless CMS for any tech stack

Theme Studio for Shopify

Build and optimize your Shopify-hosted storefront, no coding required

Resources

Blog

Get StartedLogin

To fetch or load references or Symbols, you must use enrich in your calls to fetch multiple entries from Builder.

Pass in the options object with enrich: true when using getAll() in a Gen 1 SDK and fetchEntries() in a Gen 2 SDK. This provides a consistent experience between the Visual Editor and the live site.

Tip: Builder enriches by default for Gen 1's builder.get() and Gen 2's fetchOneEntry().

To fetch or load references or Symbols, be sure to manually pass in enrich: true when using getAll().

import { builder } from '@builder.io/react';

const pages = await builder.getAll('page', {
  // to fetch references and Symbols
  options: { enrich: true }
});

To fetch or load references or Symbols, be sure to manually pass in enrich: true when using fetchEntries().

import { fetchEntries } from '@builder.io/sdk-react';

const pages = await fetchEntries({
  model: 'page',
  apiKey: 'YOUR_API_KEY',
  // to fetch references and Symbols
  options: { enrich: true }
});

For more detail on the Gen 2 (or Mitosis) SDKs, see the Builder GitHub repo.

Was this article helpful?

Product

Visual CMS

Theme Studio for Shopify

Sign up

Login

Featured Integrations

React

Angular

Next.js

Gatsby

Get In Touch

Chat With Us

Twitter

Linkedin

Careers

© 2020 Builder.io, Inc.

Security

Privacy Policy

Terms of Service

Newsletter

Get the latest from Builder.io

By submitting, you agree to our Privacy Policy

Product

Platform Overview

Integrations

What's New

Open Source

Builder

Builder

Mitosis

Mitosis

Qwik

Qwik

Partytown

Partytown

Popular Guides

From Design to Code Guide

Composable Commerce Guide

Headless CMS Guide

Headless Commerce Guide

Composable DXP Guide

Design to Code

Resources

Blog

Knowledge Base

Community Forum

Partners

Templates

Success Stories

Showcase

Resource Center

Frameworks

React

React

Next

Next.js

Qwik

Qwik

Gatsby

Gatsby

Angular

Angular

Vue

Vue

Svelte

Svelte

Remix logo

Remix

Nuxt

Nuxt

Hydrogen

Hydrogen

See All

© 2024 Builder.io, Inc.

Security

Privacy Policy

SaaS Terms

Security & Compliance

Cookie Preferences