Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Wishlist.graphqls #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions design-documents/graph-ql/coverage/Wishlist.graphqls
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
type WishList{
id: ID!
name: String!
public: Boolean!
items: [WishlistItem]
items_count: Int
sharing_code: String
updated_at: String
}
type WishlistItem{
sku: String
quantity: Float
parent_sku: String,
selected_options: [String!]
entered_options: [EnteredOptionInput!]
added_at: String
comment: String
}
type Mutation {
addProductsToWishlist(input: AddProductsToWishlistInput): WishlistOutput
createWishlist(input: WishListInput): WishlistOutput
updateWishlist(input: WishListInput): WishlistOutput
moveItemtoWishlist(fromWishlistID: ID!, toWishlistID: ID!, WishlistItem)
copyItemtoWishlist(fromWishlistID: ID!, toWishlistID: ID!, WishlistItem)
}

type WishlistOutput{
wishlist: WishList!
errors" [KeyValue]
}
input AddProductsToWishlistInput {
wishlist_items: [WishlistItemInput!]!
}

input WishlistItemInput {
sku: String
quantity: Float
parent_sku: String,
selected_options: [String!]
entered_options: [EnteredOptionInput!]
}