/go-graphql-postgres-api

Go with GraphQL + Postgres api project

Primary LanguageGo

Go GraphQL Postgres Api

Go with GraphQL + Postgres api project

Screenshot

Screenshoot

Live Demo

Built With

  • GO
  • GraphQL
  • Postgres

To get a local copy up and running follow these simple example steps.

Prerequisites

git clone https://github.com/akbari4yaseen/go-graphql-postgres-api.git

Getting Started

First, execute the postgres.sql, next, set the Postgres connection string, then run the development server:

go run main.go

Use Postman or another Graphql PlayGround http://localhost:4010/graphql

JSON

{
 "query": "{users(name:\"yaseen\"){id, name, age, profession, friendly}}"
}

GraphQL

{
 {
  users(name: "alex") {
    id
    name
    age
    profession
    friendly
  }
}
}

👤 Yaseen Akbari

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!