INNER CODE UNIT · TypeScript

PothosListPlugin

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

export class PothosListPlugin<
  Types extends SchemaTypes,
> extends BasePlugin<Types> {}

try {
  SchemaBuilder.registerPlugin(pluginName, PothosListPlugin)
} catch (e) {}

const fieldBuilderProto =
  RootFieldBuilder.prototype as PothosSchemaTypes.RootFieldBuilder<
    SchemaTypes,
    unknown,
    FieldKind
  >

fieldBuilderProto.list = function list(fieldOptions) {
  const ref =
    this.builder.objectRef<ListShape<SchemaTypes, unknown, boolean>>(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…