@link(
  url: "https://specs.apollo.dev/federation/v2.0"
  import: ["@key", "@shareable"]
)

type ProductList @key(fields: "products{id pid category{id tag}} selected{id}") {
    products: [Product!]!
    first: Product @shareable
    selected: Product @shareable
}

type Product @key(fields: "id pid category{id tag}") {
    id: String!
    price: Price
    pid: String
    category: Category
}

type Category @key(fields: "id tag") {
    id: String!
    tag: String
}

type Price {
    price: Float!
}
