Skip to content

Instantly share code, notes, and snippets.

Nikolas nikolasburk

Block or report user

Report or block nikolasburk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile


Challenge 1

Setup instructions:

git clone
cd support-challenges/challenge-1
# Create local Postgres DB called "test1"
View index.d.ts
import { DMMF, DMMFClass, Engine } from './runtime';
* Utility Types
export declare type Enumerable<T> = T | Array<T>;
export declare type MergeTruthyValues<R extends object, S extends object> = {
[key in keyof S | keyof R]: key extends false ? never : key extends keyof S ? S[key] extends false ? never : S[key] : key extends keyof R ? R[key] : never;
export declare type CleanupNever<T> = {
[key in keyof T]: T[key] extends never ? never : key;
View schema.graphql
type User {
id: ID!
name: String
type Query {
user(id: ID!): User
View express-graphql.js
// express-graphql
const app = express()
app.use('/graphql', graphqlHTTP({ schema }))
app.listen(4000, () => {
console.log(`Server ready at http://localhost:4000`)
View apollo-server.js
// apollo-server
const server = new ApolloServer({ schema })
server.listen({ port: 4000 }, () =>
console.log(`Server ready at http://localhost:4000`),
View graphql-yoga.js
// graphql-yoga
const server = new GraphQLServer({ schema })
server.start(() => {
console.log(`Server ready at http://localhost:4000`)
View index.js
const UserType = new GraphQLObjectType({
name: 'User',
fields: {
id: { type: GraphQLID },
name: { type: GraphQLString },
const schema = new GraphQLSchema({
query: new GraphQLObjectType({
View datamodel.prisma
type Post {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
title: String!
published: Boolean! @default(value: "false")
author: User
comments: [Comment!]!
View schema.graphql
### This file was autogenerated by Nexus 0.9.9
### Do not make changes to this file directly
type AggregatePost {
count: Int!
type AggregateUser {
count: Int!

The fine print.

This page contains a lot of legalese pertaining to policies and terms. It's all very formal but everything here is guided by the following principles:

Our Guiding Principles

  • Your data is safe.
  • You own your data.
  • Stability and uptime of the Graphcool cloud platform are paramount.
  • Graphcool is built by developers for developers. We will strive to make every interaction with Graphcool an easy and painless experience.
You can’t perform that action at this time.