Skip to content

Instantly share code, notes, and snippets.

@gmac
Last active February 2, 2025 12:33
Show Gist options
  • Save gmac/2869a2a1934360ed13fd9c0339c22890 to your computer and use it in GitHub Desktop.
Save gmac/2869a2a1934360ed13fd9c0339c22890 to your computer and use it in GitHub Desktop.
Extensions
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