Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

graphql.config.ts

21 lines972 Bytes

1import { defineConfig } from "@effect/graphql-generator/Config";
2​
3// `schema/linear.graphql` is the public schema Linear publishes with its SDK
4// (https://github.com/linear/linear/blob/master/packages/sdk/src/schema.graphql).
5export default defineConfig({
6 schema: "./schema/linear.graphql",
7 documents: ["src/**/*.graphql"],
8 scalars: {
9 // Kept as Linear sends it: the tracker passes these on as ISO strings.
10 DateTime: "effect/Schema#String",
11 // An attachment's metadata arrives as an object; its shape depends on the integration.
12 JSONObject: "effect/Schema#Json",
13 // Documented as stringified JSON, but a template's data has also arrived as an object.
14 JSON: "effect/Schema#Json",
15 // Filters compare dates with these; the tracker sends none of them.
16 DateTimeOrDuration: "effect/Schema#String",
17 Duration: "effect/Schema#String",
18 TimelessDate: "effect/Schema#String",
19 TimelessDateOrDuration: "effect/Schema#String",
20 },
21});