Beside old plantings and on disturbed, rather dry slopes, a shrub may appear with long, thin, arching branches, small purple flowers and elongated red berries. This is one of the two well-known East Asian goji species, Lycium barbarum, commonly called goji berry or Chinese wolfberry.
Only fully ripe, red fruits are recommended here as food without heating. Green berries and the leaves of an unidentified shrub must not be eaten.
HOW TO IDENTIFY IT
A deciduous shrub usually one to three meters high, sometimes bearing long, whip-like shoots that lean on neighboring vegetation.
Its branches are thin and grayish brown, with some short branch tips forming spines. Leaves are simple, alternate or clustered on short shoots, ranging from narrowly lance-shaped to oval, with smooth margins.

The flowers grow singly or in small groups in the leaf axils. They have a short calyx and a purple tubular corolla opening into five spreading lobes.
Later, small oval red or orange-red berries develop, approximately one to two centimeters long and containing numerous small seeds.
WHERE IT GROWS AND HOW COMMON IT IS
Lycium barbarum is not a native desert shrub of California.
Jepson eFlora and regional floristic materials record its escape from cultivation on disturbed ground and near older plantings.
It is much less common in the wild than native desert relatives such as Lycium andersonii or L. fremontii, and may grow beside fences or abandoned gardens.
Not every shrub bearing goji berries is a wild, publicly accessible plant: most bushes near residences are cultivated on private property.
WHEN EDIBLE PARTS ARE AVAILABLE
Young leaves appear in spring. Purple flowers then begin opening, usually from late spring into summer.
The berries enlarge during the warm season and turn bright red chiefly from the second half of summer into autumn.
One shrub may bear both green unripe fruit and ripe red fruit at the same time.
For food, choose only soft, fully colored, undamaged berries. Clean berries darken and shrivel during natural drying but must never develop a moldy smell.
WHAT CAN BE EATEN WITHOUT COOKING
Ripe red berries. Plants For A Future expressly confirms the raw consumption of Lycium barbarum fruit.
They have a mildly sweet flavor with a distinctive, slightly grassy note. They can be eaten fresh in small portions or dried naturally under clean conditions.
The species reference regards unripe fruit as a potential safety concern, so it is excluded.
Young shoots and leaves are generally described after cooking; this article does not treat them as confirmed raw foods.
Roots, bark and spines are not eaten.
HOW TO AVOID CONFUSION
Lycium chinense, described separately in the atlas, is so similar that one red berry is insufficient to determine the species.
Distinguishing characters include the relative lengths of the purple corolla lobes and tube, leaf form and flower stalk.
Native desert wolfberries usually grow in different natural habitats and have their own distinct morphology.
Some members of the nightshade family produce poisonous berries. Neither taste nor red color can serve as a safety test.
If the flowering shrub cannot be identified, leave the berries uncollected.
SOURCES
Plants For A Future: https://pfaf.org/user/plant.aspx?latinname=Lycium+barbarum
Burke Herbarium: https://burkeherbarium.org/imagecollection/taxon.php?Taxon=Lycium+barbarum
California Species: https://californiaspecies.com/species/lycium-barbarum
