DEV_APP_PORT=3000
# Database
DEV_DB_HOST=127.0.0.1
DEV_DB_PORT=27017
DEV_DB_NAME=mongo-dev-db
MONGO_USERNAME=godbay_planet
MONGO_PASSWORD=super_password
NODE_ENV=dev
MONGO_ROOT_USERNAME=root
MONGO_ROOT_PASSWORD=secret_password
You can set your own values for the above MONGO_ROOT_USERNAME
and MONGO_ROOT_PASSWORD
. This is feature that latest mongo database image supports for creating a simple user with the root
role in the admin authentication database.
{ authors { name id books { name } } }
{ author(name: "Robert C. Martin") { name id books { name } } }
mutation { addAuthor(name: "Robert C. Martin", age: 55) { id, name, age } }
mutation { updateAuthor(id: "5dbf071df17010b73ce8de8f", name: "Robert C. Martin") { name } }
mutation { deleteAuthor(id: "5dbf06322b3963b65f7d2ddc") { id } }
{ books { id name author { name id } } }
{ book(book_name: "You Dont know JS") { isbn year author { name } } }
mutation { addBook(name: "The Clean Coder: A Code of Conduct for Professional Programmers", genre: "Programming", isbn: "12312313", year: 2000, authorId: "5dbf071df17010b73ce8de8f") { id name genre isbn author { name id } } }
mutation { updateBook(id: "5dbf07b1f17010b73ce8de91", name: "The Clean Coder", authorId: "5dbf071df17010b73ce8de8f") { name } }
mutation { deleteBook(id: "5dbf07b1f17010b73ce8de91") { name } }