30 questions for “GraphQL”

Found in 1 field. Select a question to see its full answer.

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