Skip to content

Commit a069173

Browse files
committed
Use 2 spaces for graphql schema
GraphQLGuide/book@5ceb823
1 parent e707b81 commit a069173

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: graphql-server.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ server.use(
1616
// queries for data are defined)
1717
schema: buildSchema(`
1818
type Group {
19-
_id: String
20-
name: String
19+
_id: String
20+
name: String
2121
}
2222
2323
type User {
24-
_id: String
25-
username: String
26-
group: Group
24+
_id: String
25+
username: String
26+
group: Group
2727
}
2828
2929
type Query {
30-
user(id: String!): User
31-
users: [User]
32-
group(id: String!): Group
33-
groups: [Group]
30+
user(id: String!): User
31+
users: [User]
32+
group(id: String!): Group
33+
groups: [Group]
3434
}
3535
`),
3636
// The query fields that we'll use to get the data for our

0 commit comments

Comments
 (0)