Most Important GraphQL and Apollo Server Mcqs

Most Important GraphQL and Apollo Server Mcqs

1. Apollo server can be used with several popular libraries for NodeJS like Express, Koa, Hapi etc.??

A. True
B. False

True

2. You also need to install the “express” module using npm while working with the NodeJS Apollo server..??

A. True
B. False

B. False


3. The ____consists of type definitions, starting with a mandatory top-level query type for reading data, followed by fields and nested fields..??

A. Mutation
B. Schema
C. Type definition
D. None of the options

C. Type definition


4. The GraphQL “schema” provides all info for reading and writing data via GraphQL operation..??

A. True
B. False

A. True


5._______function are used to return data for fields from the schema..??

A. Type definition
B. Resolver
C. Query
D. Mutation

B. Resolver



Related Post


6. Apollo Server comes with GraphQL Playground which is a built-in client for consuming/testing GraphQL APIs.??
A. True
B. False

A. True


7. If you want to make a non-nullable field, you need to put ____sign in the field.?

A. “$”
B. “!”
C. “_”
D. “ ”

C. “_”


8.GraphQL “arguments” are used to customize queries by providing them additional info while consuming GraphQL queries.??

A. True
B. False

A.True


9. It is possible to create customized data for your GraphQL schema.?

A. True
B. False

B.False

10. You cannot put a non-nullable mark on your custom data type field.?

A. True
B. False

B.False

11.__ is used to add/update data in your collection.?

A. Query
B. Mutation
C. Subscription

B. Mutation


12. It is always recommended to organize your schema, models and resolvers into different directories..??
A. True
B. False

A. True

13. Is it possible to authenticate a user on the Apollo server using a JWT token?
A. True
B. False

A. True

Recommended:


You may like..


Leave a Comment

Your email address will not be published.