Query a GraphQL API with graphql-request

Alex Banks
InstructorAlex Banks

Share this video with your friends

Send Tweet

Created by the team at Prisma, graphql-request is a lightweight package that can be used to send queries to any GraphQL API. Sending a request with graphql-request uses less syntax than a fetch request. In this lesson, we will query the totalDays field using this helper package.