Skip to content

Commit 0176162

Browse files
committed
updates
1 parent c3136d4 commit 0176162

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/content/export-listing-functions.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,19 @@ chapter: All listings query
88
postnumber: 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
1616
export 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
```
2726
import { getAllListings } from "./query";

0 commit comments

Comments
 (0)