Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add pagination back and change type of the content field
  • Loading branch information
melnikovi committed Oct 22, 2020
commit 0f8c22bc841b4a20ad552df0b10f5024ac1942a4
10 changes: 8 additions & 2 deletions design-documents/graph-ql/coverage/dynamic-blocks.graphqls
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
type DynamicBlock {
uid: ID!
content: String!
content: ComplexTextValue!
}

# We don't need name, is_enabled, locations, ga_creative, catalog_price_rule_ids, cart_price_rules_ids, locations on storefront

type DynamicBlocks {
items: [DynamicBlock]!
page_info: SearchResultPageInfo
total_count: Int!
}

type DynamicBlocksFilterInput {
type: DynamicBlockTypeEnum!
locations: [DynamicBlockLocationEnum!] # Blocks for all locations will be displayed if not supplied
Expand All @@ -13,7 +19,7 @@ type DynamicBlocksFilterInput {
}

type DynamicBlocksOutput {
items: [DynamicBlock]!
dynamic_blocks: DynamicBlocks!
}

enum DynamicBlockTypeEnum {
Expand Down
4 changes: 3 additions & 1 deletion design-documents/graph-ql/coverage/dynamic-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ PWA will receive similar JavaScript component definition that can be parsed to e
items {
uid
name
content
content {
html
}
}
page_info {
current_page
Expand Down