GraphQL Flashcards
You simply send a single query to the ______ server that includes the concrete data requirements
GraphQL
The GraphQL server responds to a request with a ________ where these requirements are fulfilled
JSON object
One of the most common problems with _______ is that of over- and underfetching. This happens because the only way for a client to download data is by hitting endpoints that return fixed data structures. It’s very difficult to design the API in a way that it’s able to provide clients with their exact data needs
REST
GraphQL uses this strong type system to define the capabilities of an API
GraphQL Schema Definition Language (SDL)
This schema serves as the contract between the client and the server to define how a client can access the data.
GraphQL Schema Definition Language (SDL)
The ____________ allows client applications to access data stored in a linked MongoDB Atlas cluster using any standard GraphQL client
Atlas GraphQL API
___________ automatically creates GraphQL types for every linked collection that has a defined schema and evaluates role-based permissions for all GraphQL requests
App Services
A declarative, strongly-typed query language for client applications. Clients define the exact data shape and contents that they need in a single request which eliminates over-fetching problems and circumvents the need for multiple costly round trips to the server.
GraphQL
You generate the GraphQL schema and resolvers from __________ for MongoDB collections.
JSON schemas
A GraphQL _______ is a read operation that requests specific fields from one or more types. App Services automatically generates query types for documents in each collection that has a defined schema.
query
Getting data to and from the backend. It is a more modern API that connects apps to backends
GraphQL
_______ means GraphQL is the right query language for heterogeneous backends, meaning backends with different kinds of data sources besides just databases.
Nesting
uniform backends vs. diverse backends
SQL VS Graph
tables vs. hierarchical data
SQL VS Graph