Skip to main content
More in Learn

Fetching all Components

Crystallize gives you access to a number of components. These components are collectively used to define a custom shape or to edit the pre-existing shapes. Let's take a look at how you can fetch all these components at once.

Querying Components

There are two ways to fetch components in Crystallize. One way is to fetch specific components as needed, the second way is to fetch all the components at once. In this section, we will be fetching all the components together.

Fetch all Components

Fetching all components is made as easy possible. Similar to how you fetch components one by one using component specific type, the same will be done here. However, instead of the component field, the components field would be used. There is no need to use IDs here, just the component types. The query below fetches only four components, you can add all component types here if you'd prefer.

People showing thumbs up

Need further assistance?

Ask the Crystallize team or other enthusiasts in our slack community.

Join our slack community