Skip to content

Instantly share code, notes, and snippets.

View hayes's full-sized avatar

Michael Hayes hayes

View GitHub Profile
@hayes
hayes / schema-first.md
Created April 6, 2022 05:07
Pothos schema first concept

Simple SDL

type Query {
  posts(page: Int): [Post!]!
}

type Post {
  author: User
  title: String
@hayes
hayes / graphql-config.ts
Last active April 25, 2025 04:35
locate pothos from stacktraces
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import type { IGraphQLConfig } from 'graphql-config';
// @ts-ignore
import { spawn, execSync } from 'child_process';
const locateServer = spawn('bun', ['--watch', './packages/graphql/src/locate.ts'], {
stdio: 'inherit',
});