Skip to content

Commit

Permalink
Undid UnionRef type
Browse files Browse the repository at this point in the history
  • Loading branch information
OAGr committed Feb 26, 2024
1 parent f79cee2 commit 56ea454
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/hub/src/graphql/types/ModelRevision.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { UnionRef } from "@pothos/core";

import { builder } from "@/graphql/builder";
import { prisma } from "@/prisma";

Expand All @@ -16,20 +14,7 @@ export const SquiggleSnippet = builder.prismaNode("SquiggleSnippet", {
});

// TODO - turn into interface?
export const ModelContent: UnionRef<
{
id: string;
code: string;
version: string;
seed: string;
},
{
id: string;
code: string;
version: string;
seed: string;
}
> = builder.unionType("ModelContent", {
export const ModelContent = builder.unionType("ModelContent", {
types: [SquiggleSnippet],
resolveType: () => SquiggleSnippet,
});
Expand Down

0 comments on commit 56ea454

Please sign in to comment.