Skip to content

Commit a48f43b

Browse files
committed
deployed
1 parent d682823 commit a48f43b

File tree

10 files changed

+1561
-18
lines changed

10 files changed

+1561
-18
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ $ npm run serve
6868
14. Understanding Routing in Vue JS Application
6969
- Part - 1 [Live here](https://vue-router-nil-1.web.app/)
7070
- Part - 2 [Live here](https://vue-noob-router-2.web.app/)
71+
15. Understanding State Mangement in Vue JS using Vuex
72+
- Part - 1 [Live here](https://vue-noob-vuex.web.app/)
7173

7274
---
7375

vue-noob-4/graphql/resolvers/index.js

Whitespace-only changes.

vue-noob-4/graphql/schema/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const { buildSchema } = require('graphql');
2+
module.exports = buildSchema(`
3+
type Customer {
4+
5+
}
6+
type RootQuery {
7+
8+
}
9+
type RootMutation {
10+
11+
}
12+
schema {
13+
query: RootQuery
14+
mutation: RootMutation
15+
}
16+
`);

vue-noob-4/models/Customer.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const mongoose = require('mongoose');
2+
const Schema = mongoose.Schema;
3+
const customerSchema = new Schema({
4+
firstName: {
5+
type: String,
6+
required: true,
7+
},
8+
lastName: {
9+
type: String,
10+
required: true,
11+
},
12+
email: {
13+
type: String,
14+
required: true,
15+
},
16+
});
17+
18+
module.exports = mongoose.model('Customer', customerSchema);

0 commit comments

Comments
 (0)