Skip to content

A simple GraphQL server built with Go, utilizing the graphql-go/graphql library to demonstrate basic GraphQL operations.

Notifications You must be signed in to change notification settings

AshishNikam111000/graphql-golang-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Golang Demo

A simple GraphQL server built with Go, utilizing the graphql-go/graphql library to demonstrate basic GraphQL operations.

🚀 Features

  • Basic GraphQL Setup: Implements a simple GraphQL server with a hello query.
  • Minimal Dependencies: Built with Go's standard library and graphql-go/graphql.
  • Easy to Extend: A solid foundation for adding more complex GraphQL schemas and resolvers.

📦 Prerequisites

Ensure you have the following installed:

⚙️ Installation & Usage

  1. Clone the repository:

    git clone https://github.com/AshishNikam111000/graphql-golang-demo.git
    cd graphql-golang-demo
  2. Install dependencies and run the server:

    go mod tidy
    go run main.go

🧪 Testing with Postman

  • Method - POST
  • URL - localhost:3000/graphql
  • Body - Select form body type and field name="query" and field value="{ hello }" (your query)

About

A simple GraphQL server built with Go, utilizing the graphql-go/graphql library to demonstrate basic GraphQL operations.

Topics

Resources

Stars

Watchers

Forks

Languages