Become a member
to unlock all features

    Authenticate a User with a GraphQL Mutation


    Mutations give you the ability to invoke backend functions from the client. In this lesson, we will use a mutation to authenticate a user with their username and password. Authorized users will receive a token that can be used to identify the current user in future operations.

    To follow along with these queries, go to the Pet Library GraphQL Playground.