forked from hackers-pub/hackerspub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.ts
More file actions
29 lines (27 loc) · 781 Bytes
/
mod.ts
File metadata and controls
29 lines (27 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { type GraphQLSchema, printSchema } from "graphql";
import path from "node:path";
import "./account.ts";
import "./apns.ts";
import "./actor.ts";
import { builder } from "./builder.ts";
import "./error.ts";
import "./doc.ts";
import "./invite.ts";
import "./login.ts";
import "./misc.ts";
import "./notification.ts";
import "./passkey.ts";
import "./poll.ts";
import "./post.ts";
import "./reactable.ts";
import "./search.ts";
import "./signup.ts";
import "./timeline.ts";
import "./webfinger.ts";
export type { UserContext as Context } from "./builder.ts";
export { createYogaServer } from "./server.ts";
export const schema: GraphQLSchema = builder.toSchema();
void Deno.writeTextFile(
path.join(import.meta.dirname ?? "", "schema.graphql"),
printSchema(schema),
);