All fields

“GraphQL” in Information Technology

30 questions across 3 technologies.

Information Technology

30 questions in 3 technologies

#QuestionTechnologyTopicLevel
1What is GraphQL, and how does it differ from a traditional REST API in terms of how clients request data? Node.js › GraphQLNode.jsGraphQLBeginner
2What is the difference between a GraphQL query variable and hardcoding a value directly inside the query string? Node.js › GraphQLNode.jsGraphQLBeginner
3How would you set up a basic GraphQL server in Node.js using Apollo Server, defining a schema and resolvers? Node.js › GraphQLNode.jsGraphQLIntermediate
4What is the difference between a GraphQL Query, Mutation, and Subscription operation type? Node.js › GraphQLNode.jsGraphQLIntermediate
5What is GraphQL introspection, and why might you want to disable it in a production environment? Node.js › GraphQLNode.jsGraphQLIntermediate
6What is the purpose of GraphQL fragments, and how do they help avoid duplicating field selections across multiple queries? Node.js › GraphQLNode.jsGraphQLIntermediate
7How would you handle file uploads in a GraphQL API, given GraphQL's standard JSON-based transport doesn't naturally support binary file data? Node.js › GraphQLNode.jsGraphQLIntermediate
8What is the purpose of GraphQL's non-null (!) type modifier, and what happens if a resolver for a non-null field returns null unexpectedly? Node.js › GraphQLNode.jsGraphQLIntermediate
9What is the difference between a GraphQL scalar type and an object type, and how would you define a custom scalar (like DateTime) in a Node.js GraphQL server? Node.js › GraphQLNode.jsGraphQLIntermediate
10What is the N+1 query problem in GraphQL specifically, and how does DataLoader solve it? Node.js › GraphQLNode.jsGraphQLAdvanced
11How would you implement authentication and authorization in a GraphQL API in Node.js, given there's typically only a single HTTP endpoint? Node.js › GraphQLNode.jsGraphQLAdvanced
12How would you implement query complexity analysis or depth limiting in a GraphQL API to prevent a maliciously deep or expensive query from overwhelming the server? Node.js › GraphQLNode.jsGraphQLAdvanced
13How would you implement GraphQL schema stitching or federation to compose a single unified GraphQL API from multiple underlying microservices? Node.js › GraphQLNode.jsGraphQLAdvanced
14How would you implement caching for a GraphQL API, given that unlike REST, a single endpoint serves widely varying query shapes that don't map cleanly to standard HTTP caching? Node.js › GraphQLNode.jsGraphQLAdvanced
15How would you write automated tests for GraphQL resolvers in Node.js, testing them independently of the full HTTP/schema execution layer? Node.js › GraphQLNode.jsGraphQLAdvanced
16How would you set up a basic GraphQL server in Node.js using Apollo Server, and what are schema and resolvers? Node.js › GraphQL with Node.jsNode.jsGraphQL with Node.jsBeginner
17What is GraphQL, and how does it genuinely differ from a traditional REST API specifically in terms of exactly how a Flutter app actually requests the precise specific data it genuinely needs? Flutter › GraphQL in FlutterFlutterGraphQL in FlutterBeginner
18What is the graphql_flutter package, and how does it let you actually execute a GraphQL query directly from within your Flutter app? Flutter › GraphQL in FlutterFlutterGraphQL in FlutterBeginner
19How do GraphQL Mutations differ from Queries, and how would you define one to create a new resource? Node.js › GraphQL with Node.jsNode.jsGraphQL with Node.jsIntermediate
20What is over-fetching and under-fetching in REST APIs, and how does GraphQL specifically address both? Node.js › GraphQL with Node.jsNode.jsGraphQL with Node.jsIntermediate
21What is a GraphQL mutation, and how does it genuinely differ from a regular query specifically in terms of properly performing an action that actually genuinely changes data on the server? Flutter › GraphQL in FlutterFlutterGraphQL in FlutterIntermediate
22How does GraphQL's own built in caching mechanism, typically provided through a normalized cache, genuinely help meaningfully reduce redundant, unnecessary network requests within a Flutter app? Flutter › GraphQL in FlutterFlutterGraphQL in FlutterIntermediate
23How do GraphQL subscriptions let a Flutter app receive genuinely real time updates whenever specific relevant data actually changes on the server, similar conceptually to how a Firestore real time listener already works? Flutter › GraphQL in FlutterFlutterGraphQL in FlutterIntermediate
24What is the N+1 query problem specific to GraphQL, and how does DataLoader solve it? Node.js › GraphQL with Node.jsNode.jsGraphQL with Node.jsAdvanced
25How would you implement authentication and authorization in a GraphQL API, given all requests typically go through a single endpoint? Node.js › GraphQL with Node.jsNode.jsGraphQL with Node.jsAdvanced
26How should you properly structure GraphQL fragments to genuinely share a common set of fields consistently across several separate different queries, keeping your overall GraphQL codebase genuinely more maintainable as it steadily grows? Flutter › GraphQL in FlutterFlutterGraphQL in FlutterAdvanced
27How can code generation tools such as graphql_codegen automatically generate strongly typed Dart classes directly from your existing GraphQL schema and queries, meaningfully improving overall type safety compared to manually working with raw dynamic JSON responses? Flutter › GraphQL in FlutterFlutterGraphQL in FlutterAdvanced
28How would you implement error handling for a GraphQL API in Node.js, given GraphQL's different error-response format compared to REST? Node.js › Error HandlingNode.jsError HandlingAdvanced
29What are the genuine tradeoffs of using raw WebSockets compared to using a considerably higher level real time protocol such as GraphQL subscriptions or Firebase's own Realtime Database, specifically for building a genuinely real time feature? Flutter › WebSockets & Real Time Data in FlutterFlutterWebSockets & Real Time Data in FlutterAdvanced
30How does GraphQL's approach to API evolution differ from REST's typical versioning strategies? .NET › API Versioning.NETAPI VersioningIntermediate