Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit b713317

Browse files
authored
docs: fix endpoints example
woops! there was a mistake in the endpoints config example
1 parent 41941b1 commit b713317

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ module.exports = {
8989
app: {
9090
schema: ["src/schema.graphql", "directives.graphql"],
9191
documents: ["**/*.{graphql,js,ts,jsx,tsx}", "my/fragments.graphql"],
92-
endpoints: {
93-
default: {
94-
url: "http://localhost:8000",
95-
headers: { Authorization: `Bearer ${process.env.API_TOKEN}` },
92+
extensions: {
93+
endpoints: {
94+
default: {
95+
url: "http://localhost:8000",
96+
headers: { Authorization: `Bearer ${process.env.API_TOKEN}` },
97+
},
9698
},
97-
},
99+
}
98100
},
99101
db: {
100102
schema: "src/generated/db.graphql",

0 commit comments

Comments
 (0)