Search

Home > Hallo Swift > GraphQL
Podcast: Hallo Swift
Episode:

GraphQL

Category: Technology
Duration: 01:13:45
Publish Date: 2020-07-16 00:00:00
Description:

WWDC Highlights

GraphQL

Experiment: GraphQL vs. REST

| Scenario | Δ Bytes | Δ RTT | | -------- | -------- | -------- | | Worst-Case | +80% | +18% | | Average-Case | -16% | -42% |

  • Mattias Cederlund. Performance of frameworks for declarative data fetching : An evaluation of falcor and relay+graphql, 2016.
// Define a Cell
struct CharacterCell: View {
    // Use the GraphQL Property Wrapper
    @GraphQL(StarWars.Person.name)
    var name: String?

    @GraphQL(StarWars.Person.homeworld.name)
    var home: String?

    var body: some View {
        HStack {
            name.map { Text($0).bold() }
            Spacer()
            home.map { Text($0) }
        }
    }
}

Picks

Social

Total Play: 0