GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Grats
  • Docs
  • Playground
  • GitHub
  • Quick Start

This view

  • Original page
  • New address

GeezerVison is showing grats.capt.dev — Grats

No Duplication

Grats uses your existing TypeScript types to derive your GraphQL schema.

No Conflicts

Since your implementation is your schema, there's no need to validate that they match.

No Runtime

Grats extracts an executable graphql-js schema at build time. No Grats code is needed at runtime.

  • Object Oriented
  • Functional
/**
* A user in our kick-ass system!
* @gqlType */
class User {
/** @gqlField */
name: string;

/** @gqlField */
greet(greeting: string): string {
return `${greeting}, ${this.name}`;
}
}
Playground

Schema

"""A user in our kick-ass system!"""
type User {
greet(greeting: String!): String
name: String
}
/**
* A user in our kick-ass system!
* @gqlType */
type User = {
/** @gqlField */
name: string;
};

/** @gqlField */
export function greet(user: User, greeting: string): string {
return `${greeting}, ${user.name}`;
}
Playground

Schema

"""A user in our kick-ass system!"""
type User {
greet(greeting: String!): String
name: String
}
Read the Blog Post ➔
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.