Skip to content

Instantly share code, notes, and snippets.

@jsoneaday
Created October 3, 2020 18:28
Show Gist options
  • Save jsoneaday/24f631d37bd9ee14921783b5d9f346cb to your computer and use it in GitHub Desktop.
Save jsoneaday/24f631d37bd9ee14921783b5d9f346cb to your computer and use it in GitHub Desktop.
GraphQL query in SwiftUI
query GetAllVehicles {
getAllVehicles {
__typename
... on Car {
id
name
wheelCount
passengerCount
}
... on Truck {
id
name
wheelCount
maxPayload
}
... on Boat {
id
name
passengerCount
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment