File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,19 @@ chapter: All listings query
88postnumber : 11
99---
1010
11- Here we are just going to set up the function and export it so that Apollo Server can pick up the query.
11+ Here we are just going to set up the function that grabs all our listings and export it so that Apollo Server can pick up the query.
1212
13- First lets go into our query.js file and create the following function:
13+ First lets go into our ` query.js ` file and create the following function:
1414
15- ```
15+ ``` javascript
1616export const getAllListings = async (args , context ) => {
17-
18- return null
17+ return null
1918}
2019```
2120
22- All we are doing here is creating an async function that accepts args and context as properties.
21+ All we are doing here is creating an async function that accepts ` args ` and ` context ` as properties.
2322
24- Next we are going to import this function from above into our index.js file:
23+ Next we are going to import this function from above into our ` index.js ` file:
2524
2625```
2726import { getAllListings } from "./query";
You can’t perform that action at this time.
0 commit comments