aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-22 13:05:15 -0300
committerEuAndreh <eu@euandre.org>2021-02-22 13:05:15 -0300
commit8a1dd0a0421e14865dd57d65c705070b4d3b2473 (patch)
treecacf4cac451ad587564036a66c42547e3b304103
parente6fd671095a4190b2867645194b4cca795445d79 (diff)
downloadapollo-server-demo-8a1dd0a0421e14865dd57d65c705070b4d3b2473.tar.gz
Use port 5000 by default
-rw-r--r--src/00.js2
-rw-r--r--src/01.js2
-rw-r--r--src/02.js2
-rw-r--r--src/03.js2
-rw-r--r--src/04.js2
-rw-r--r--src/05.js2
-rw-r--r--src/06.js2
-rw-r--r--src/07.js2
8 files changed, 8 insertions, 8 deletions
diff --git a/src/00.js b/src/00.js
index b824c45..346bdab 100644
--- a/src/00.js
+++ b/src/00.js
@@ -12,7 +12,7 @@ const server = new ApolloServer({
typeDefs,
});
-server.listen({ port: 4000 }).then(({ url }) => {
+server.listen({ port: 5000 }).then(({ url }) => {
console.log(`Listening on ${url}
Given the above URL and the following GraphQL schema:
diff --git a/src/01.js b/src/01.js
index 7518d59..7edc17d 100644
--- a/src/01.js
+++ b/src/01.js
@@ -17,7 +17,7 @@ const server = new ApolloServer({
resolvers,
});
-server.listen({ port: 4000 }).then(({ url }) => {
+server.listen({ port: 5000 }).then(({ url }) => {
console.log(`Listening on ${url}
With the same curl as the previous step, the response is different.
diff --git a/src/02.js b/src/02.js
index 1c60700..ad6c90e 100644
--- a/src/02.js
+++ b/src/02.js
@@ -21,7 +21,7 @@ const server = new ApolloServer({
mocks: true,
});
-server.listen({ port: 4000 }).then(({ url }) => {
+server.listen({ port: 5000 }).then(({ url }) => {
console.log(`Listening on ${url}
We have a new schema:
diff --git a/src/03.js b/src/03.js
index f396b65..47f4278 100644
--- a/src/03.js
+++ b/src/03.js
@@ -20,7 +20,7 @@ const server = new ApolloServer({
mocks: resolvers,
});
-server.listen({ port: 4000 }).then(({ url }) => {
+server.listen({ port: 5000 }).then(({ url }) => {
console.log(`Listening on ${url}
Now the mocking + overrides are working again.
diff --git a/src/04.js b/src/04.js
index c3ce8cf..154dba4 100644
--- a/src/04.js
+++ b/src/04.js
@@ -22,7 +22,7 @@ const server = new ApolloServer({
const app = express();
server.applyMiddleware({ app });
-const port = 4000;
+const port = 5000;
app.listen({ port }, () => {
console.log(`Listening on http://localhost:${port}${server.graphqlPath}
diff --git a/src/05.js b/src/05.js
index 18a5d69..e9723b5 100644
--- a/src/05.js
+++ b/src/05.js
@@ -23,7 +23,7 @@ const server = new ApolloServer({
const app = express();
server.applyMiddleware({ app });
-const port = 4000;
+const port = 5000;
app.listen({ port }, () => {
console.log(`Listening on http://localhost:${port}${server.graphqlPath}
diff --git a/src/06.js b/src/06.js
index f4c9820..d7506bd 100644
--- a/src/06.js
+++ b/src/06.js
@@ -36,7 +36,7 @@ const server = new ApolloServer({
const app = express();
server.applyMiddleware({ app });
-const port = 4000;
+const port = 5000;
app.listen({ port }, () => {
console.log(`Listening on http://localhost:${port}${server.graphqlPath}
diff --git a/src/07.js b/src/07.js
index 79c7f29..6fae418 100644
--- a/src/07.js
+++ b/src/07.js
@@ -46,7 +46,7 @@ const server = new ApolloServer({
const app = express();
server.applyMiddleware({ app });
-const port = 4000;
+const port = 5000;
app.listen({ port }, () => {
console.log(`Listening on http://localhost:${port}${server.graphqlPath}