Skip to content

Releases: hayes/pothos

@pothos/plugin-drizzle@0.17.1

14 Apr 20:46
0e04c74

Choose a tag to compare

Patch Changes

  • e8c02e5: Fix column selection merging to respect false values. Columns explicitly set to false in a selection are no longer added to the query.

@pothos/plugin-prisma@4.14.3

01 Apr 23:59
4143153

Choose a tag to compare

Patch Changes

  • 43fecad: Fix relatedConnection totalCount returning null when parent is loaded without _count selections (eg. when query is not spread in parent prismaField resolver)

@pothos/plugin-relay@4.7.0

06 Feb 00:00
d52c663

Choose a tag to compare

Minor Changes

  • bb1e9c3: Add support for customizing Node and PageInfo type names through nodeTypeOptions and pageInfoTypeOptions

@pothos/plugin-drizzle@0.17.0

06 Feb 00:00
d52c663

Choose a tag to compare

Minor Changes

  • 0c2f318: Add pathInfo parameter to t.relation() and t.relatedConnection() query callbacks for path-based filtering.

    PathInfo includes:

    • path: Array of "ParentType.fieldName" strings (e.g., ['Query.user', 'User.posts'])
    • segments: Detailed info for each path segment including field, alias, parentType, and isList

    Example usage:

    posts: t.relation("posts", {
      query: (args, ctx, pathInfo) => {
        // Check if accessed via viewer (own profile) vs user (public)
        const isViewerContext = pathInfo?.path?.at(-2) === "Query.viewer";
        return {
          where: { published: isViewerContext ? false : true },
        };
      },
    });

@pothos/plugin-prisma@4.14.2

16 Jan 09:25
96db4c3

Choose a tag to compare

Patch Changes

  • a0b9490: Add relationField to extensions

@pothos/plugin-errors@4.9.0

10 Jan 02:26
68106b8

Choose a tag to compare

Minor Changes

  • 8ad5769: Add builder.errorUnion method and support for item errors in nested lists

@pothos/plugin-drizzle@0.16.2

10 Jan 02:26
68106b8

Choose a tag to compare

Patch Changes

  • ab0af70: Update to support drizzle-orm 1.0.0-beta.10

@pothos/plugin-directives@4.3.0

31 Dec 06:28
378dc9e

Choose a tag to compare

Minor Changes

  • 5b29d51: Add support for adding astNodes to types, fields, and enum values

@pothos/plugin-add-graphql@4.3.0

31 Dec 06:28
378dc9e

Choose a tag to compare

Minor Changes

  • 5b29d51: Add support for adding astNodes to types, fields, and enum values

@pothos/core@4.12.0

31 Dec 08:11
61b642a

Choose a tag to compare

Minor Changes

  • 100f5f2: update inferred type of t.listRef from Array to Iterable