I am not too familiar with PHP and am just learning the Element API. How do I turn this craft query into an element api query?
craft.categories.group("brands").level(1).all(),
In categories this is what it looks like
Brands
-Luxury
-Gucci
-Chanel
-Louis Vuitton
-Streetwear
-Supreme
-Bape
-Off White
OtherCategory
- ...
SomeOtherCategory
- ...
- ...