@vantreeseba/drizzle-graphql 14.0.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -6,7 +6,7 @@ import "drizzle-orm/pg-core/query-builders/query";
6
6
  import { SQLiteAsyncDatabase } from "drizzle-orm/sqlite-core";
7
7
  import "drizzle-orm/sqlite-core/query-builders/query";
8
8
  import { ASTNode, GraphQLEnumType, GraphQLError, GraphQLFieldResolver, GraphQLInputObjectType, GraphQLInputType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLOutputType, GraphQLResolveInfo, GraphQLScalarType, GraphQLSchema } from "graphql";
9
- import { GraphQLDate, GraphQLDateTime, GraphQLJSON, GraphQLUUID } from "graphql-scalars";
9
+ import { GraphQLDateTime, GraphQLJSON, GraphQLUUID } from "graphql-scalars";
10
10
  //#region src/util/type-naming.d.ts
11
11
  /** A word the rules decline to decide. Widens the keys derived from it rather than guessing. */
12
12
  type Unresolved = string;
@@ -2570,6 +2570,18 @@ declare const GraphQLBigIntString: GraphQLScalarType<string, string>;
2570
2570
  * non-numeric strings (including 'NaN' and 'Infinity').
2571
2571
  */
2572
2572
  declare const GraphQLDecimalString: GraphQLScalarType<string, string>;
2573
+ /**
2574
+ * A calendar day — `date` columns, whichever `mode` drizzle reads them in. Always transported
2575
+ * as an RFC 3339 `full-date` string (`YYYY-MM-DD`), in both directions: it has no time and no
2576
+ * offset, so there is nothing for a client's timezone to shift. `graphql-scalars`' own
2577
+ * `GraphQLDate` is deliberately not used: its `parseValue` returns a JS `Date`, so the same
2578
+ * scalar would be a string on the way out and an instant on the way in.
2579
+ *
2580
+ * Input accepts only a `YYYY-MM-DD` string naming a real day (`2026-02-30` and datetime
2581
+ * strings are rejected) and hands it on unchanged. Output also accepts a JS `Date`, read as
2582
+ * the UTC day it encodes.
2583
+ */
2584
+ declare const GraphQLDate: GraphQLScalarType<string, string>;
2573
2585
  //#endregion
2574
2586
  //#region src/util/selection.d.ts
2575
2587
  /** Options shared by {@link selectionToWith} and {@link resolveSelection}. */
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { MySqlAsyncDatabase } from "drizzle-orm/mysql-core";
3
3
  import { PgAsyncDatabase } from "drizzle-orm/pg-core";
4
4
  import { SQLiteAsyncDatabase } from "drizzle-orm/sqlite-core";
5
5
  import { ASTNode, GraphQLEnumType, GraphQLError, GraphQLFieldResolver, GraphQLInputObjectType, GraphQLInputType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLOutputType, GraphQLResolveInfo, GraphQLScalarType, GraphQLSchema } from "graphql";
6
- import { GraphQLDate, GraphQLDateTime, GraphQLJSON, GraphQLUUID } from "graphql-scalars";
6
+ import { GraphQLDateTime, GraphQLJSON, GraphQLUUID } from "graphql-scalars";
7
7
  import "drizzle-orm/mysql-core/query-builders/query";
8
8
  import "drizzle-orm/pg-core/query-builders/query";
9
9
  import "drizzle-orm/sqlite-core/query-builders/query";
@@ -2570,6 +2570,18 @@ declare const GraphQLBigIntString: GraphQLScalarType<string, string>;
2570
2570
  * non-numeric strings (including 'NaN' and 'Infinity').
2571
2571
  */
2572
2572
  declare const GraphQLDecimalString: GraphQLScalarType<string, string>;
2573
+ /**
2574
+ * A calendar day — `date` columns, whichever `mode` drizzle reads them in. Always transported
2575
+ * as an RFC 3339 `full-date` string (`YYYY-MM-DD`), in both directions: it has no time and no
2576
+ * offset, so there is nothing for a client's timezone to shift. `graphql-scalars`' own
2577
+ * `GraphQLDate` is deliberately not used: its `parseValue` returns a JS `Date`, so the same
2578
+ * scalar would be a string on the way out and an instant on the way in.
2579
+ *
2580
+ * Input accepts only a `YYYY-MM-DD` string naming a real day (`2026-02-30` and datetime
2581
+ * strings are rejected) and hands it on unchanged. Output also accepts a JS `Date`, read as
2582
+ * the UTC day it encodes.
2583
+ */
2584
+ declare const GraphQLDate: GraphQLScalarType<string, string>;
2573
2585
  //#endregion
2574
2586
  //#region src/util/selection.d.ts
2575
2587
  /** Options shared by {@link selectionToWith} and {@link resolveSelection}. */