diff --git a/src/examples/BuyDomainOnZeit.md b/src/examples/BuyDomainOnZeit.md new file mode 100644 index 0000000..25498ec --- /dev/null +++ b/src/examples/BuyDomainOnZeit.md @@ -0,0 +1,22 @@ +--- +description: | + Buys a new domain! +contributedBy: "@sgrove" +variables: "{\"domain\":\"graphql-san-francisco-meetup-2020.com\"}" +title: "BuyDomainOnZeit" +result: | + "{\"data\":{\"zeit\":{\"purchaseDomain\":{\"success\":true}}}}" +--- + +```graphql +mutation BuyDomainOnZeit($domain: String!) { + zeit { + purchaseDomain( + data: { name: $domain, expectedPrice: 12 } + ) { + success + } + } +} + +```