Skip to content

Commit

Permalink
tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
etech committed Jan 11, 2019
1 parent ad97bd7 commit 2127d83
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions index.js
Expand Up @@ -2,6 +2,46 @@ var express = require('express');
var graphqlHTTP = require('express-graphql');
var graphql = require('graphql');


const users = [
{
id: 1,
name : "manish"
},
{
id: 2,
name : "test"
},
{
id: 3,
name : "test2"
}
]

const address = [
{
id: 1,
address : "test",
country: "IN",
phone: "000",
user_id: 1
},
{
id: 2,
address : "test2",
country: "IN",
phone: "2222",
user_id: 1
},
{
id: 3,
address : "test3",
country: "IN",
phone: "3333",
user_id: 2
}
]

const countryEnumType = new graphql.GraphQLEnumType({
name: 'countryEnum',
values: {
Expand Down

0 comments on commit 2127d83

Please sign in to comment.