# data[].attributes.body
Igneous rocks form when hot molten rocks are crystallizes and solidifies.

Extrusive: Formed on the surface of the Earth from lava; it is magma that has emerged from underground.

Intrusive: Formed when magma id cooled and solidifies within the crust of the planet.

# data[].attributes.body
Sedimentary rocks are formed by pre-existing rocks or pieces of once-living organisms. They are often rocks that have distinctive layering or bedding.

Clastic rocks: From rocks and mineral fragments that are compressed and cemented together to make one rock.

Chemical rocks: Rocks that are caused by crystallization of chemical precipitates.

Organic: Rocks that are formed by remains of once-living organisms.

# data[].attributes.body
Sandstone

# data[].attributes.body
Coal

# data[].attributes.body
Metamorphic rocks start as one type of rock, but over time changes their original forms of either igneous, sedimentary, or earlier metamorphic. Metamorphic rocks are formed when rocks are exposed to high heat, pressure, and hot mineral-rich fluids; more commonly a combination of these factors.

Foliated Rocks: As the parent is squeezed with pressure during recrystallization it forms the platy or elongated minerals, causing for the rock to become aligned or foliated. Foliated rocks structure indicates the direction pressure was applied in.

Non-Foliated Rocks: It is the opposite of a Foliated rock, there is not platy. Non-foliated rocks form in many ways, some rocks like limestone are made of minerals that are not flat or elongated.