Skip to content

Commit 3b0224a

Browse files
committed
Cleanup console.logs from demo server.
1 parent 3fb6c6e commit 3b0224a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: GraphQLServer/app.ts

-4
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,10 @@ const resolvers = {
133133
},
134134

135135
posts: async (parent: any, { query }: any, context: any, info: any) => {
136-
console.log({ query });
137136
if (query) {
138137
return Post.find({ title: { $regex: query, $options: 'i' } });
139138
}
140139
const posts = await Post.find();
141-
console.log({ posts });
142140
return posts;
143141
},
144142
},
@@ -166,7 +164,6 @@ const resolvers = {
166164

167165
const user = new User(draft);
168166
await user.save();
169-
console.log({ user });
170167
return user;
171168
},
172169
deleteUser: async (
@@ -206,7 +203,6 @@ const resolvers = {
206203

207204
const post = new Post(draft);
208205
await post.save();
209-
console.log({ post });
210206
return post;
211207
},
212208

0 commit comments

Comments
 (0)