Skip to content

An example graphql server with custom types and dummy data (in memory db)

Notifications You must be signed in to change notification settings

aleksandrenko/graphql-example-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-example-server

query {
  user(id:1) {
    id
    name
    email
  }
  users {
    id
    name
    email
    password
    isActive
    visitedPlaces {
      id
      title
    }
    photos {
      id
    }
    birthDate
    website
    FriendsConnection {
      pageInfo {
        endCursor
        hasNextPage
        hasPreviousPage
        startCursor
      }
    }
  }

  activities {
    id
    title
    description
    places {
      id
      title
    }
    tagsConnection {
      pageInfo {
        endCursor
        hasNextPage
        hasPreviousPage
        startCursor
      }
    }
  }

  photos {
    id
    url
  }

  tags {
    id
    name
  }

  places {
    id
    title
    description
    location {
      lat
      lng
    }
    TagsConnection {
      pageInfo {
        endCursor
        hasNextPage
        hasPreviousPage
        startCursor
      }
    }
  }
}

mutation queries:

mutation CreateUser($userInput: UserInput) {
  createUser(user: $userInput) {
    name
    email
  }
}

query vars:
{ 
	"userInput": {
    "name": "Nikolay Aleksandrenko",
    "email": "[email protected]",
    "password": "pawwrod123",
    "isActive": false,
    "birthDate": "01/01/1983",
    "website": "aleksandrenko.com"
  }
}

About

An example graphql server with custom types and dummy data (in memory db)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published