MCPcopy Create free account
hub / github.com/campsite/campsite / addObjectQueryParam

Method addObjectQueryParam

packages/types/generated.ts:4285–4293  ·  view source on GitHub ↗
(query: QueryParamsType, key: string)

Source from the content-addressed store, hash-verified

4283 }
4284
4285 protected addObjectQueryParam(query: QueryParamsType, key: string) {
4286 const value = query[key]
4287 return Object.keys(value)
4288 .map((subKey) => {
4289 const subValue = value[subKey]
4290 return this.encodeQueryParam(`${key}[${subKey}]`, subValue)
4291 })
4292 .join('&')
4293 }
4294
4295 protected toQueryString(rawQuery?: QueryParamsType): string {
4296 const query = rawQuery || {}

Callers 1

toQueryStringMethod · 0.95

Calls 2

encodeQueryParamMethod · 0.95
mapMethod · 0.80

Tested by

no test coverage detected