Mastering GraphQL: A Comprehensive Flashcard Guide

Table of Contents

GraphQL Flashcards

What is GraphQL?   drill graphql

Front

What is GraphQL?

Back

GraphQL is a query language and runtime for APIs that allows clients to request exactly the data they need.

GraphQL vs REST   drill graphql

Front

How does GraphQL differ from REST in terms of data fetching?

Back

  • GraphQL allows clients to request specific data in a single request
  • REST typically requires multiple endpoints for different data needs
  • GraphQL provides a more flexible and efficient approach to data fetching

GraphQL Schema   drill graphql

Front

What is a GraphQL schema?

Back

A GraphQL schema is a description of the types and operations available in a GraphQL API. It defines the structure of queries, mutations, and the data that can be fetched.

Query   drill graphql

Front

What is a GraphQL query?

Back

A GraphQL query is a request for specific data from a GraphQL API. It allows clients to specify exactly which fields they want to retrieve.

Mutation   drill graphql

Front

What is a GraphQL mutation?

Back

A GraphQL mutation is an operation used to modify data on the server. It allows clients to create, update, or delete data.

Resolver   drill graphql

Front

What is a resolver in GraphQL?

Back

A resolver is a function that determines how to fetch or compute the data for a specific field in a GraphQL schema.

Type System   drill graphql

Front

What are the basic types in GraphQL's type system?

Back

  • Scalar types: Int, Float, String, Boolean, ID
  • Object types: Custom types with fields
  • Enum types: A set of allowed values
  • List types: Arrays of other types
  • Non-null types: Types that can't be null

Introspection   drill graphql

Front

What is introspection in GraphQL?

Back

Introspection is a feature that allows clients to query the schema for information about the types and fields available in the API.

Fragments   drill graphql

Front

What are fragments in GraphQL?

Back

Fragments are reusable units of query logic in GraphQL that can be shared across multiple queries or mutations.

Subscription   drill graphql

Front

What is a GraphQL subscription?

Back

A subscription is a long-lived operation that allows clients to receive real-time updates from the server when specific events occur.

Author: Jason Walsh

j@wal.sh

Last Updated: 2024-10-30 16:43:54