Skip to content

Instantly share code, notes, and snippets.

@ColorBuffer
Last active January 23, 2018 17:15
Show Gist options
  • Save ColorBuffer/a2d573e1c13b42493bb262e108d81886 to your computer and use it in GitHub Desktop.
Save ColorBuffer/a2d573e1c13b42493bb262e108d81886 to your computer and use it in GitHub Desktop.
type Query {
viewer: Viewer
layout: Layout
}
type Viewer {
user: User
basket: Basket
}
type layout {
menu(entityId: ID): [MenuItem]
}
type MenuItem {
title: String
url: String
children: [MenuItem]
}
type User {
id: ID
username: String
nickname: String
}
type Basket {
# Retrives count of total products that user added to his basket.
entireCount: Int!
products: [ProductItem]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment