enatega-multivendor-app/src/apollo/client.js
and enatega-multivendor-app/src/apollo/server.js
in Dashboard Queries are located in enatega-multivendor-admin/src/apollo/server.js
As an example look into enatega-multivendor-app/src/apollo/client.js
and the constant getNotifications
the query is written as line 1
GetNotifications is the query name for the frontend while on line 2
notifications is the query name for backend. The parameters written inside notifications are output parameters they will be returned by the GraphQL endpoint.foods
is a simple example for this located at enatega-multivendor-app/src/apollo/server.js
line 1
FoodByCategory
is the query name for the frontend we are passing a String
where it's variable name is category
$
sign is used for variable name while !
is used for required field. On line 2
foodByCategory
is the query name for the backend