gitalph / test-type-graphql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test-type-graphql

Installation

To run the app, run these command:

docker-compose up

Playground example

mutation {
  createBook(
    data: {
		name: "b1",
    	pageCount: 11,
		authorName: "a1"
    }
  ) {
    bookId,
	name
  }
}

mutation {
  createBook(
    data: {
		name: "b2",
    	pageCount: 2,
		authorName: "a2"
    }
  ) {
    bookId,
	name
  }
}

mutation {
  createBook(
    data: {
		name: "b3",
    	pageCount: 3,
		authorName: "a1"
    }
  ) {
    bookId,
	name
  }
}

query {
  books
  {
    name,
    pageCount,
    authorId
    author {
      name
    }
  }
}

About

License:MIT License


Languages

Language:TypeScript 91.3%Language:Dockerfile 8.7%