0 votes
in GraphQL by
What do you know by arguments in GraphQL?

1 Answer

0 votes
by

The arguments are used in GraphQL Queries and Fields when we want to request specific data.

For example:

{  

employee(id: "001"){  

name  

salary  

}  

}  

In the above query, the 'id' is an argument passed to return the 'name' and 'salary' of 'employee' where we want a specific data with 'id' equals to '001'.

Related questions

0 votes
asked Apr 10, 2023 in GraphQL by Robindeniel
0 votes
asked Apr 10, 2023 in GraphQL by Robindeniel
...