Pluralsight: GraphQL: The Big Picture 2019 Flashcards

1
Q

02 What is GraphQL / 03 What is GraphQL?

What is GraphQL?

A

GraphQL is a query language for your API.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

02 What is GraphQL / 05 Rest vs. GraphQL

Compare GraphQL and REST.

A
  1. Multiple round trips (REST) vs one single request (GraphQL).
  2. Over fetching and under fetching (REST) vs tailor made queries (GraphQL).
  3. No need to expose new API when UI refactor is needed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

03 GraphQL Core Concepts / 01 Types

What are two main types in GraphQL?

A
  1. Query
  2. Mutation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

03 GraphQL Core Concepts / 04 Queries - Alias

What is an alias?

A

You can’t query for the same field with different arguments. Aliases let you rename the result of a field with anything you want.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

03 GraphQL Core Concepts / 05 Queries - Fragments

What are fragments?

A

Fragments are GraphQL’s reusable units. They let you build sets of fields and then include them in multiple queries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

03 GraphQL Core Concepts / 07 Mutations

How query and mutation fields are executed?

A

Query fields are executed in parallel, mutation fields run in series, one after the other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

05 GraphQL Ecosystem and Tooling / 02 GraphQL Client

What GraphQL Client can do? (6 items)

A
  1. Communicate with server (sent requests and receive responses)
  2. Integrate with view components and updates the UI
  3. Cache query results
  4. Handle errors and validate schema
  5. Provide local state management
  6. Provide pagination
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

05 GraphQL Ecosystem and Tooling / 03 GraphQL Server

What are resolvers?

A

Resolver function is a function that resolves a value for a type/field in the GraphQL Schema.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

05 GraphQL Ecosystem and Tooling / 03 GraphQL Server

4 responsibilities of GraphQL Server

A
  1. Schema and Resolver Functions
  2. Network Layer
  3. GraphQL Execution Engine
  4. Batched Resolving
How well did you know this?
1
Not at all
2
3
4
5
Perfectly