Last active
January 23, 2018 17:15
-
-
Save ColorBuffer/a2d573e1c13b42493bb262e108d81886 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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