MCPcopy
hub / github.com/payloadcms/payload / create

Method create

packages/sdk/src/index.ts:164–169  ·  view source on GitHub ↗

* @description Performs create operation * @param options * @returns created document

(
    options: CreateOptions<T, TSlug, TSelect>,
    init?: RequestInit,
  )

Source from the content-addressed store, hash-verified

162 * @returns created document
163 */
164 create<TSlug extends CollectionSlug<T>, TSelect extends SelectType>(
165 options: CreateOptions<T, TSlug, TSelect>,
166 init?: RequestInit,
167 ): Promise<TransformCollectionWithSelect<T, TSlug, TSelect>> {
168 return create(this, options, init)
169 }
170
171 delete<TSlug extends CollectionSlug<T>, TSelect extends SelectFromCollectionSlug<T, TSlug>>(
172 options: DeleteManyOptions<T, TSlug, TSelect>,

Callers 15

createFunction · 0.45
createLanguageServiceFunction · 0.45
migrateFreshFunction · 0.45
migrateRefreshFunction · 0.45
runMigrationFileFunction · 0.45
processImportBatchFunction · 0.45
toolFunction · 0.45
createNewInStripeFunction · 0.45
handleCreatedOrUpdatedFunction · 0.45
generateCreateRedirectFunction · 0.45
confirmOrderFunction · 0.45
initiatePaymentFunction · 0.45

Calls 1

createFunction · 0.90

Tested by 1

createLanguageServiceFunction · 0.36