---
source: crates/graphql-composition/tests/composition_tests.rs
expression: actual_api_sdl
input_file: crates/graphql-composition/tests/composition/unions_basic/test.md
---
type Pizza {
id: ID!
nameEn: String
nameIt: String!
toppings: [Topping!]!
}
type Onion {
variety: String
}
type Cheese {
quantity: Int!
type: String!
}
type Pineapple {
isAnanas: Boolean!
}
type Sushi {
id: ID!
topping: Topping
}
type Salmon {
id: ID!
raw: Boolean
}
type Omelet {
isRectangular: Boolean
}
type Query {
pizza(id: ID!): Pizza
}
union Topping = Onion | Cheese | Pineapple | Salmon | Omelet