Medium
Considérez la déclaration suivante dans un schéma GraphQL :
enum Role {
ADMIN
USER
GUEST
}
type Query {
users(role: Role): [User]
}
Comment utiliseriez-vous cette définition dans une requête pour récupérer tous les utilisateurs ayant le rôle USER
?
Author: AnasStatus: PublishedQuestion passed 32 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
1
Using inline fragments for different types in GraphQL1
Create a new review and return its details0
What is the main role of a "resolver" in GraphQL?0
What was the business need that drove Facebook to develop GraphQL?0
What is the role of the schema in GraphQL?0
What will be the result of this GraphQL query if the user has no posts?0
What is a "mutation" in GraphQL?