LanceGin / Graphql Server Demo
Licence: mit
GraphQL server demo with nodejs
Stars: ✭ 19
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Graphql Server Demo
Graphql Cost Analysis
A Graphql query cost analyzer.
Stars: ✭ 527 (+2673.68%)
Mutual labels: graphql, graphql-server
Agoo
A High Performance HTTP Server for Ruby
Stars: ✭ 679 (+3473.68%)
Mutual labels: graphql, graphql-server
Pup
The Ultimate Boilerplate for Products.
Stars: ✭ 563 (+2863.16%)
Mutual labels: graphql, graphql-server
Neo4j Graphql
GraphQL bindings for Neo4j, generates and runs Cypher
Stars: ✭ 429 (+2157.89%)
Mutual labels: graphql, graphql-server
Strawberry
A new GraphQL library for Python 🍓
Stars: ✭ 891 (+4589.47%)
Mutual labels: graphql, graphql-server
Create Graphql
Command-line utility to build production-ready servers with GraphQL.
Stars: ✭ 441 (+2221.05%)
Mutual labels: graphql, graphql-server
Eliasdb
EliasDB a graph-based database.
Stars: ✭ 611 (+3115.79%)
Mutual labels: graphql, graphql-server
Nest Ideas Api
REST API for app ideas built in nestjs
Stars: ✭ 380 (+1900%)
Mutual labels: graphql, graphql-server
Graphql Yoga
🧘 Fully-featured GraphQL Server with focus on easy setup, performance & great developer experience
Stars: ✭ 6,573 (+34494.74%)
Mutual labels: graphql, graphql-server
Node Graphql Server
Boilerplate code for scalable, production-ready GraphQL servers
Stars: ✭ 761 (+3905.26%)
Mutual labels: graphql, graphql-server
Graphql Up
Get a ready-to-use GraphQL API for your schema
Stars: ✭ 415 (+2084.21%)
Mutual labels: graphql, graphql-server
Graph Node
Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
Stars: ✭ 884 (+4552.63%)
Mutual labels: graphql, graphql-server
Typegql
Create GraphQL schema with TypeScript classes.
Stars: ✭ 415 (+2084.21%)
Mutual labels: graphql, graphql-server
Graphql Engine
Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
Stars: ✭ 24,845 (+130663.16%)
Mutual labels: graphql, graphql-server
Framework
.NET Core Extensions and Helper NuGet packages.
Stars: ✭ 399 (+2000%)
Mutual labels: graphql, graphql-server
Caliban
Functional GraphQL library for Scala
Stars: ✭ 581 (+2957.89%)
Mutual labels: graphql, graphql-server
Spikenail
A GraphQL Framework for Node.js
Stars: ✭ 358 (+1784.21%)
Mutual labels: graphql, graphql-server
Parse Server
API server module for Node/Express
Stars: ✭ 19,165 (+100768.42%)
Mutual labels: graphql, graphql-server
Graphql Prisma Typescript
🏡 GraphQL server reference implementation (Airbnb clone) in Typescript using Prisma & graphql-yoga
Stars: ✭ 723 (+3705.26%)
Mutual labels: graphql, graphql-server
Graphqlgen
⚙️ Generate type-safe resolvers based upon your GraphQL Schema
Stars: ✭ 796 (+4089.47%)
Mutual labels: graphql, graphql-server
GraphQL-Server-Demo
GraphQL-Server-Demo
is a typical example of starting a GraphQL Server with node.js. It is an easy and readable project to learn and understand GraphQL.
Screenshots
Query
Mutation
Structure
GraphQL-Server-Demo
├── README.md
├── LICENSE
├── .babelrc
├── .gitignore
├── package.json
├── yarn.lock
├── dev.sqlite
├── app.js
├── schemas
│ └── index.js
├── resolvers
│ ├── userResolver.js
│ ├── messageResolver.js
│ └── ...
└── types
├── query.js
├── mutation.js
├── queries
│ ├── userType.js
│ ├── messageType.js
│ └── ...
└── mutations
├── userInputType.js
├── messageInputType.js
└── ...
-
app.js
-- server engine of this project -
dev.sqlite
-- test database -
schemas
-- basic schema to create theGraphQLSchema
, contanins the basicqueryType
andmutationType
-
types
-- all theGraphQLObjectType
that user defined -
resolvers
-- all the resolvers to resolve the Type data
Quick Start
Excute the commands below:
git clone [email protected]:LanceGin/GraphQL-Server-Demo.git
cd GraphQL-Server-Demo
yarn && yarn start
Open the url http://localhost:4000/graphql
, you will see the GraphiQL
GUI in the window, and you can excute the example query and mution operations.
Query Operation
Request
query {
user(id: 1) {
name
nickname
message {
id
content
}
}
}
Response
{
"data": {
"user": [
{
"name": "gin",
"nickname": "lancegin",
"message": [
{
"id": "1",
"content": "test message"
},
{
"id": "2",
"content": "hello"
},
{
"id": "3",
"content": "world"
}
]
}
]
}
}
Mutation Operation
Request
mutation {
createMessage(input: {user_id: "1", content: "hello world111"}) {
id
content
}
}
Response
{
"data": {
"createMessage": {
"id": "10",
"content": "hello world111"
}
}
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].