Raathigesh / atmo

:heavy_check_mark: Mock data for your prototypes and demos. Remote deployments to Zeit now.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graphql Endpoint - Have sample graphql schema when new endpoint is created

Raathigesh opened this issue · comments

type Author {
id: Int! # the ! means that every author object must have an id
firstName: String
lastName: String
posts: [Post] # the list of Posts by this author
}

type Post {
id: Int!
tags: [String]
title: String
text: String
author: Author
}

the schema allows the following two queries:

type RootQuery {
author(firstName: String, lastName: String): Author
fortuneCookie: String
}

schema {
query: RootQuery
}