Raathigesh / atmo

:heavy_check_mark: Mock data for your prototypes and demos. Remote deployments to Zeit now.
815 stars 46 forks source link

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

Closed Raathigesh closed 8 years ago

Raathigesh commented 8 years ago

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 }