Open History to see the last commit
1import { defineConfig } from "@effect/graphql-generator/Config";
2
3// `schema/github.graphql` is github.com's public schema
4// (https://docs.github.com/public/fpt/schema.docs.graphql). Enterprise Server lacks some of its
5// fields, such as pull request stacks, so a document asks for those under `@include`.
6export default defineConfig({
7 schema: "./schema/github.graphql",
8 documents: ["src/**/*.graphql"],
9 scalars: {
10 GitObjectID: "effect/Schema#String",
11 // A fully qualified ref name such as `refs/heads/main`.
12 GitRefname: "effect/Schema#String",
13 // Kept as GitHub sends it: callers compare these strings with other reads of the same field.
14 DateTime: "effect/Schema#String",
15 },
16});