findItemsBySlug

Function

Find items by slug typeKeywords.

Optional exclude parameter accepts the id of an item we expect to have this particular slug. This is used during update calls where we don't know if the slug specifically has been updated, but we don't want a false-postive from the item we are updating

  • findItemsBySlug(slugInfo: {
    exclude:
    string
    slug:
    string
    }, requestOptions: IRequestOptions) : Promise<IItem[]>

Parameters

Parameter Type Default Notes
slugInfo Required {
exclude:
string
slug:
string
}
requestOptions Required IRequestOptions

Available requestOptions

Property Type Notes

Returns

Promise<IItem[]>

Function defined in common/src/items/slugs.ts:109