1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Provide Dynamic Arguments in a Apollo Query Component with GraphQL Variables

    reactReact
    ^16.4.2
    graphqlGraphQL
    ^14.0.2

    GraphQL supports parameters for queries via variables. They allow us to supply dynamic arguments. Often we want these variables to be dependent on decisions made by a User. In this session we are going to walk through how to implement a filter variable based on a UI checkbox element using Apollo's Query component.