INNER CODE UNIT · TypeScript

name

StellateHQ/fuse · packages/core/src/pothos-list/index.ts:46

    const name = fieldConfig.name[0].toUpperCase() + fieldConfig.name.slice(1)
    const listName = `${this.typename}${name}${
      fieldConfig.name.toLowerCase().endsWith('list') ? '' : 'List'
    }`

    this.builder.listObject({
      type: fieldOptions.type,
      name: listName,
      nullable: fieldOptions.nodeNullable ?? true,
    })

    this.builder.configStore.associateRefWithName(ref, listName)
  })

  return fieldRef
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…