Skip to content

Commit

Permalink
revert testing changes (node 20 downgrade)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeardEth committed Jan 26, 2024
1 parent c893d19 commit 54d420c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/nextjs/src/app/api/graphql/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { createYoga } from "graphql-yoga";

import { schema } from "@realms-world/graphql-server";

export const runtime = "edge";

const { handleRequest } = createYoga({
schema,
graphqlEndpoint: "/api/graphql",
Expand All @@ -11,7 +13,6 @@ const { handleRequest } = createYoga({
origin: "*",
},
maskedErrors: false,
logging: "debug",
});

export { handleRequest as GET, handleRequest as POST };
6 changes: 3 additions & 3 deletions packages/graphql-server/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ const RangeType = g.type("RangeType", {
}),
});

export const ERC721TranfersGQL = g.type("ERC721Transfers", {
/*export const ERC721TranfersGQL = g.type("ERC721Transfers", {
_cursor: g.int().optional(),
id: g.string(),
token_id: g.int().optional(),
contract_address: g.string().optional(),
token_key: g.string().optional(),
fromAddress: g.string().optional(),
toAddress: g.string().optional(),
});
});*/

export const ERC721TokensGQL = g.type("ERC721Tokens", {
_cursor: g.ref(() => RangeType).optional(),
Expand All @@ -47,7 +47,7 @@ export const ERC721TokensGQL = g.type("ERC721Tokens", {
image: g.string().optional(),
name: g.id().optional(),
metadata: g.ref(metadataType).optional(),
transfers: g.ref(ERC721TranfersGQL).list().optional(),
//transfers: g.ref(ERC721TranfersGQL).list().optional(),
});

export const queryType = g.type("Query", {
Expand Down

0 comments on commit 54d420c

Please sign in to comment.