Field Arguments
Learn defining field arguments for GraphQL.
We'll cover the following...
Defining field arguments
GraphQL documents are made up of fields. The user lists the fields they would like, and the schema uses its definition of those fields to resolve the pieces of data that match. However, the system would be inflexible if it did not allow users to provide additional parameters to clarify exactly what information each field needs to find. A user requesting information about menuItems
, for instance, may want to see certain menu items or a certain number of them. For this reason, GraphQL has the concept of field arguments, which are defined as “a way for users to provide input to fields that can be used to parameterize their ...