graphql-js - A reference implementation of GraphQL for JavaScript

  •        76

The JavaScript reference implementation for GraphQL, a query language for APIs created by Facebook. It is a query language describing the capabilities and requirements of data models for client‐server applications. It is a query language for APIs and a runtime for fulfilling those queries with your existing data.

http://graphql.org/graphql-js/
https://github.com/graphql/graphql-js

Tags
Implementation
License
Platform

   




Related Projects

apollo-android - :pager: A strongly-typed, caching GraphQL client for Android, written in Java


Apollo-Android is a GraphQL compliant client that generates Java models from standard GraphQL queries. These models give you a typesafe API to work with GraphQL servers. Apollo will help you keep your GraphQL query statements together, organized, and easy to access from Java. Change a query and recompile your project - Apollo code gen will rebuild your data model. Code generation also allows Apollo to read and unmarshal responses from the network without the need of any reflection (see example generated code below). Future versions of Apollo-Android will also work with AutoValue and other value object generators.

libgraphqlparser - A GraphQL query parser in C++ with C and C++ APIs


libgraphqlparser is a parser for GraphQL, a query language created by Facebook for describing data requirements on complex application data models, implemented in C++11. It can be used on its own in C++ code (or in C code via the pure C API defined in the c subdirectory), or you can use it as the basis for an extension module for your favorite programming language instead of writing your own parser from scratch.The provided dump_json_ast is a simple program that reads GraphQL text on stdin and prints a JSON representation of the AST to stdout.

graphql-anywhere - :icecream: Run a GraphQL query anywhere, against any data, with no schema.


Run a GraphQL query anywhere, without a GraphQL server or a schema. Just pass in one resolver. Use it together with graphql-tag.I think there are a lot of potentially exciting use cases for a completely standalone and schema-less GraphQL execution engine. We use it in Apollo Client to read data from a Redux store with GraphQL.

graphql - An implementation of GraphQL for Go / Golang


A work-in-progress implementation of GraphQL in Go. Its currently a port of graphql-js v0.6.0 which is based on the April 2016 GraphQL specification. Future efforts will be guided directly by the latest formal GraphQL specification (currently: October 2016).The following is a simple example which defines a schema with a single hello string-type field and a Resolve method which returns the string world. A GraphQL query is performed against this schema with the resulting output printed in JSON format.

persistgraphql - A build tool for GraphQL projects.


persistgraphql is a simple build tool that enables query whitelisting and persisted queries for GraphQL projects that use statically analyze-able GraphQL queries.It scans a code directory and extracts GraphQL query documents from .graphql files. It then assigns these queries ID values/hashes and produces a JSON file which maps from queries to hashes/IDs. This map can then be used by the client and server to perform query whitelisting, query lookups (i.e. client only sends the hash/id, the server just looks up the corresponding query), etc.



graphql - GraphQL is a query language and execution engine tied to any backend service.


This is a Working Draft of the Specification for GraphQL, a query language for APIs created by Facebook.The target audience for this specification is not the client developer, but those who have, or are actively interested in, building their own GraphQL implementations and tools.

github-graphql-rails-example - Example Rails app using GitHub's GraphQL API


Demonstrates how to use the graphql-client gem to build a simple repository listing web view against the GitHub GraphQL API.The application structure is setup like a typical Rails app using controllers, views and routes with one key difference, no models. This app doesn't connect directly to any database. All the data is being fetched remotely from the GitHub GraphQL API. Instead of declaring resource models, data queries are declared right along side their usage in controllers and views. This allows an efficient single to be constructed rather than making numerous REST requests to render a single view.

graphql-client - A Ruby library for declaring, composing and executing GraphQL queries


GraphQL Client is a Ruby library for declaring, composing and executing GraphQL queries.Sample configuration for a GraphQL Client to query from the SWAPI GraphQL Wrapper.

eslint-plugin-graphql - :vertical_traffic_light: Check your GraphQL query strings against a schema.


An ESLint plugin that checks tagged query strings inside JavaScript, or queries inside .graphql files, against a GraphQL schema.If you want to lint your GraphQL schema, rather than queries, check out cjoudrey/graphql-schema-linter.

lacinia - GraphQL implementation in pure Clojure


This library is a full implementation of Facebook's GraphQL specification.Lacinia should be viewed as roughly analogous to the official reference JavaScript implementation. In other words, it is a backend-agnostic GraphQL query execution engine. Lacinia is not an Object Relational Mapper ... it's simply the implementation of a contract sitting between the GraphQL client and your data.

graphql-relay-walker - Walk the graph


GraphQL::Relay::Walker is a Ruby library that generates queries for walking a Relay GraphQL schema. Given a GraphQL::Schema, you can walk from a given starting point, exercising any defined connections. This can be useful for various kinds of automated testing. Check out the GitHub Walker example to see it in action.Requiring graphql/relay/walker/client_ext will add a GraphQL::Client#walk method. This simplifies things by allowing the client to build and execute the query for you.

apollo-server - :earth_africa: GraphQL server for Express, Connect, Hapi and Koa


Apollo Server is a community-maintained open-source GraphQL server. It works with pretty much all Node.js HTTP server frameworks, and we're happy to take PRs for more! It works with any GraphQL schema built with the graphql-js reference implementation.Apollo Server is super easy to set up. Just npm install apollo-server-<variant>, write a GraphQL schema, and then use one of the following snippets to get started. For more info, read the Apollo Server docs.

graphql-syntax - A catalog of different packages and syntaxes to generate a GraphQL-JS schema


Gestalt will generate a schema with database backed resolution based on type definitions written in the GraphQL schema definition language. The schema language is a proposed addition to the GraphQL spec and is already used in the documentation.Gestalt has an interface for pluggable database adapters, but at the moment the only adapter is for PostgresQL.

gql - A GraphQL client in Python


This is a GraphQL client for Python. Plays nicely with graphene, graphql-core, graphql-js and any other GraphQL implementation compatible with the spec.GQL architecture is inspired by React-Relay and Apollo-Client.

apollo-ios - 📱 A strongly-typed, caching GraphQL client for iOS, written in Swift


Apollo iOS is a strongly-typed, caching GraphQL client for iOS, written in Swift.It allows you to execute queries and mutations against a GraphQL server, and returns results as query-specific Swift types. This means you don’t have to deal with parsing JSON, or passing around dictionaries and making clients cast values to the right type manually. You also don't have to write model types yourself, because these are generated from the GraphQL definitions your UI uses.

graphql-decorators - Decorators for your GraphQL schema


Decorators can be used to augment GraphQL schemas. They are similar to directives which modify the way a GraphQL server executes a query, but they apply only to schemas.At the highest level of abstraction, decorators are just a structured way to add metadata to a GraphQL schema, and a proposed rule for processing that metadata in a standard way.

apollo-codegen - :pencil2: Generate API code or type annotations based on a GraphQL schema and query documents


This is a tool to generate API code or type annotations based on a GraphQL schema and query documents.It currently generates Swift code, TypeScript annotations, Flow annotations, and Scala code, we hope to add support for other targets in the future.

swapi-rest-graphql - Query the Star Wars API with GraphQL, using the JSON Schema


A GraphQL endpoint for the Star Wars API, generated from the JSON Schema provided.The server console will print a list of all of the URLs fetched. Thanks to dataloader, we only request each URL once instead of loading it for each subtree of the query.

graphql-relay-js - A library to help construct a graphql-js server supporting react-relay.


This is a library to allow the easy creation of Relay-compliant servers using the GraphQL.js reference implementation of a GraphQL server.A basic understanding of GraphQL and of the GraphQL.js implementation is needed to provide context for this library.

graphql - Package graphql provides a GraphQL client implementation.


Package graphql provides a GraphQL client implementation.For more information, see package github.com/shurcooL/githubql, which is a specialized version targeting GitHub GraphQL API v4. That package is driving the feature development.