Last active
February 2, 2025 12:33
-
-
Save gmac/2869a2a1934360ed13fd9c0339c22890 to your computer and use it in GitHub Desktop.
Extensions
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
interface Node { | |
id: ID! | |
} | |
type Product implements Node { | |
id: ID! | |
extensions: ProductExtension | |
} | |
type ProductExtension { | |
diameter: DimensionMetatype | |
slices: Int | |
toppingOptions(first:Int,...): PizzaToppingMetaobjectConnection | |
beveragePairing: Product | |
promotionVideo: Video | |
} | |
type DimensionMetatype { | |
value: Float! | |
unit: DimensionUnitMetatype! | |
} | |
enum DimensionUnitMetatype { | |
CENTIMETERS | |
INCHES | |
} | |
type PizzaToppingMetaobject { | |
id: ID! | |
name: String | |
price: MoneyV2 | |
} | |
type PizzaToppingMetaobjectConnection { | |
edges: [PizzaToppingMetaobjectEdge]! | |
nodes: [PizzaToppingMetaobjectNode]! | |
pageInfo: PageInfo! | |
} | |
type Video implements Node { | |
id: ID! | |
} | |
type MoneyV2 { | |
amount: Decimal! | |
currencyCode: CurrencyCode! | |
} | |
scalar Decimal | |
enum CurrencyCode { | |
CAD | |
USD | |
} | |
type QueryRoot { | |
nodes(ids:[ID!]!): [Node]! | |
extensions: QueryRootExtension! | |
} | |
type QueryRootExtension { | |
pizzaTopping(id:ID!): PizzaToppingMetaobject | |
pizzaToppings(first:Int,...): PizzaToppingMetaobjectConnection | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment