Releases: hayes/pothos
Releases · hayes/pothos
@pothos/plugin-drizzle@0.17.1
Patch Changes
- e8c02e5: Fix column selection merging to respect
falsevalues. Columns explicitly set tofalsein a selection are no longer added to the query.
@pothos/plugin-prisma@4.14.3
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
Minor Changes
- bb1e9c3: Add support for customizing Node and PageInfo type names through nodeTypeOptions and pageInfoTypeOptions
@pothos/plugin-drizzle@0.17.0
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
Patch Changes
- a0b9490: Add relationField to extensions
@pothos/plugin-errors@4.9.0
Minor Changes
- 8ad5769: Add builder.errorUnion method and support for item errors in nested lists
@pothos/plugin-drizzle@0.16.2
Patch Changes
- ab0af70: Update to support drizzle-orm 1.0.0-beta.10
@pothos/plugin-directives@4.3.0
Minor Changes
- 5b29d51: Add support for adding astNodes to types, fields, and enum values
@pothos/plugin-add-graphql@4.3.0
Minor Changes
- 5b29d51: Add support for adding astNodes to types, fields, and enum values
@pothos/core@4.12.0
Minor Changes
- 100f5f2: update inferred type of t.listRef from Array to Iterable