Skip to content

Commit 22c8823

Browse files
committed
doc: added dummy data to schema.js
1 parent 70c4855 commit 22c8823

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

server/schema/schema.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
const {GraphQLObjectType, GraphQLID, GraphQLString, GraphQLInt, GraphQLSchema, buildSchema} = require('graphql');
22

3+
// dummy data
4+
var userData = [
5+
{id: '1', name: 'Bond', age: 36},
6+
{id: '13', name: 'Anna', age: 26},
7+
{id: '211', name: 'Bella', age: 16},
8+
{id: '19', name: 'Gina', age: 26},
9+
{id: '150', name: 'Georgina', age: 36},
10+
];
11+
312
// create types
413
const UserType = new GraphQLObjectType({
514
name: 'User',

0 commit comments

Comments
 (0)