omaxlive / GraphQLClient

GraphQL Project for learning purpose. Using Next.js for the client side

Home Page:https://graphqlproject.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL Project

./server/

  • Run dev server npm run dev

  • Find the GraphQL Playground in http://localhost:4000/

Simple Query

query {
  getAuthors {
    author
  }
}

Query with input

query {
  getPosts(input: {
    author: "author 2"
  }) {
    title
    detail
  }
}

Using Variables as input

query getPosts($input: PostInput!) {
  getPosts(input: $input) {
    title
    detail
  }
}

Variable declararion in Playground

{
  "input": {
    "author": "author 1"
  }
}

About

GraphQL Project for learning purpose. Using Next.js for the client side

https://graphqlproject.vercel.app

License:MIT License


Languages

Language:TypeScript 78.6%Language:JavaScript 19.5%Language:CSS 1.9%