---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [scapi](../index.md) / scapiSchemaExpandFor

# Function: scapiSchemaExpandFor()

> **scapiSchemaExpandFor**(`needs`): `string` \| `undefined`

Defined in: [packages/b2c-tooling-sdk/src/scapi/schema-source.ts:89](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/bceb8da43dd8bc63d57932bbd905d36a1b40c949/packages/b2c-tooling-sdk/src/scapi/schema-source.ts#L89)

Smallest `expand` value that satisfies what the caller will use, so outline-only reads stay small.

## Parameters

### needs

[`ScapiSchemaNeeds`](../interfaces/ScapiSchemaNeeds.md)

## Returns

`string` \| `undefined`

The `expand` value, or undefined when no section is needed.
