-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Move plan queries to graphql files (#696)
* move plan queries to graphql files * updated graphql types
- Loading branch information
David Leger
authored
Nov 4, 2019
1 parent
af6b39e
commit ec3841d
Showing
6 changed files
with
297 additions
and
55 deletions.
There are no files selected for viewing
38 changes: 2 additions & 36 deletions
38
src/components/manifold-plan-selector/manifold-plan-selector.tsx
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
fragment plan on Plan { | ||
id | ||
displayName | ||
label | ||
free | ||
cost | ||
fixedFeatures(first: 25) { | ||
edges { | ||
node { | ||
displayName | ||
displayValue | ||
label | ||
} | ||
} | ||
} | ||
meteredFeatures(first: 25) { | ||
edges { | ||
node { | ||
label | ||
displayName | ||
numericDetails { | ||
unit | ||
costTiers { | ||
limit | ||
cost | ||
} | ||
} | ||
} | ||
} | ||
} | ||
configurableFeatures(first: 25) { | ||
edges { | ||
node { | ||
label | ||
displayName | ||
type | ||
options { | ||
displayName | ||
displayValue | ||
label | ||
} | ||
numericDetails { | ||
increment | ||
min | ||
max | ||
unit | ||
costTiers { | ||
limit | ||
cost | ||
} | ||
} | ||
} | ||
} | ||
} | ||
regions(first: 25, orderBy: { field: DISPLAY_NAME, direction: ASC }) { | ||
edges { | ||
node { | ||
id | ||
displayName | ||
platform | ||
dataCenter | ||
} | ||
} | ||
} | ||
} | ||
|
||
query PlanList($productLabel: String!) { | ||
product(label: $productLabel) { | ||
id | ||
displayName | ||
label | ||
logoUrl | ||
plans(first: 25, orderBy: { field: COST, direction: ASC }) { | ||
edges { | ||
node { | ||
...plan | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
query Resource($resourceLabel: String!) { | ||
resource(label: $resourceLabel) { | ||
region { | ||
id | ||
displayName | ||
} | ||
plan { | ||
id | ||
product { | ||
label | ||
} | ||
} | ||
} | ||
} |
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
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
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
ec3841d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: