{"id":21654996,"url":"https://github.com/avijeetpandey/node-graphql","last_synced_at":"2026-05-10T19:56:46.614Z","repository":{"id":117265357,"uuid":"332265256","full_name":"avijeetpandey/node-graphQL","owner":"avijeetpandey","description":"Repo to demonstrate use of graphQL on server side","archived":false,"fork":false,"pushed_at":"2021-01-23T19:17:34.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T04:44:30.124Z","etag":null,"topics":["graphql","graphql-server-express","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avijeetpandey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-23T17:14:51.000Z","updated_at":"2021-01-23T19:17:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"e897d05e-4bd1-48d4-9ce9-34dbdfcd12ad","html_url":"https://github.com/avijeetpandey/node-graphQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avijeetpandey/node-graphQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avijeetpandey%2Fnode-graphQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avijeetpandey%2Fnode-graphQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avijeetpandey%2Fnode-graphQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avijeetpandey%2Fnode-graphQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avijeetpandey","download_url":"https://codeload.github.com/avijeetpandey/node-graphQL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avijeetpandey%2Fnode-graphQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32869721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","graphql-server-express","javascript","nodejs"],"created_at":"2024-11-25T08:29:33.352Z","updated_at":"2026-05-10T19:56:46.597Z","avatar_url":"https://github.com/avijeetpandey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server Side GraphQL using Node\n\nGraphQL is basically a spec that describes a declarative query language that your clients can use to ask an API for the exact data that they want . GraphQL achieves this by creating strongly typed Schema for you API ( gives ultimate flexibility )\n\nBascially on the server side ,GraphQL is compose of these common terms :-\n\n- **Type Definitions**\n- **Resolvers**\n- **Query Definitions**\n- **Mutation Definitions**\n- **Composition**\n- **Schema**\n\nOn the Client Side ,GraphQL is composed of these common terms :-\n\n- **Queries**\n- **Mutations**\n- **Fragments**\n\n## Where does GraphQL fit in ?\n\nThe graphQL server can fit into different scenarios example\n\n- A server with DB connected\n- A GraphQL server as layer in front of many 3rd party services and connects them all in one GraphQL API\n- A hybrid approach where GraphQL server has a connected DB and also communicates with 3rd party services\n\n## Key Parts of a GraphQL schema\n\n- **Types -** a construct defining a shape with fields\n- **Fields -** keys on a Type that have a name and a value type\n- **Scalars -** primitive value type built into GraphQL\n- **Query -** type that defines how clients can access data\n- **Mutation -** type that defines how clients can modify or create data\n\n## Queries and Resolvers\n\nBelow are the basic steps that are followed while creating Queries\n\n- Create Query Type in Schema using SDL\n- Add fields to the Query Type\n- Create resolvers for that fields\n\n```\n  type User {\n    email: String!\n    avatar: String\n    friends: [User]!\n  }\n\n  type Query {\n    me: User\n  }\n```\n\nResolvers are responsible from returning the values for fields that exists on types in a schema . The execution of a resolver is dependent on the incoming client queries\n\nBelow are the things to keep in mind about resolvers :-\n\n- Resolver name must match the exact field name on the schema type\n- It must return the value type declared for the matching field\n- Resolvers can be async\n- Can retrieve data from any source\n\n## In GraphQL Server + Resolvers = Server\n\nBasically to create a minimum server , we need a Query type with a field and a resolver for that field\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favijeetpandey%2Fnode-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favijeetpandey%2Fnode-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favijeetpandey%2Fnode-graphql/lists"}