All Projects → graphql-compose → Graphql Compose Aws

graphql-compose / Graphql Compose Aws

Licence: mit
AWS Cloud API via GraphQL

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Graphql Compose Aws

Aws Sdk Perl
A community AWS SDK for Perl Programmers
Stars: ✭ 153 (+11.68%)
Mutual labels:  amazon-web-services, aws-sdk
Aws Sdk Android
AWS SDK for Android. For more information, see our web site:
Stars: ✭ 835 (+509.49%)
Mutual labels:  amazon-web-services, aws-sdk
Aws Sdk Ios
AWS SDK for iOS. For more information, see our web site:
Stars: ✭ 1,524 (+1012.41%)
Mutual labels:  amazon-web-services, aws-sdk
Serene
Generate clojure.spec with GraphQL and extend GraphQL with clojure.spec
Stars: ✭ 132 (-3.65%)
Mutual labels:  graphql
Graphql Postgres Subscriptions
A graphql subscriptions implementation using postgres and apollo's graphql-subscriptions
Stars: ✭ 133 (-2.92%)
Mutual labels:  graphql
Subzero Starter Kit
Starter Kit and tooling for authoring GraphQL/REST API backends with subZero
Stars: ✭ 136 (-0.73%)
Mutual labels:  graphql
Graphql Recipes
A list of GraphQL recipes that, when used with the Amplify CLI, will deploy an entire AWS AppSync GraphQL backend.
Stars: ✭ 137 (+0%)
Mutual labels:  graphql
Next Advanced Apollo Starter
Advanced, but minimalistic Next.js pre-configured starter with focus on DX
Stars: ✭ 131 (-4.38%)
Mutual labels:  graphql
Graphql Go Example
Example GraphQL API implemented in Go and backed by Postgresql
Stars: ✭ 135 (-1.46%)
Mutual labels:  graphql
Gatsby Starter Foundation
A starter to launch your blazing fast personal website and a blog, Built with Gatsby and Netlify CMS. Made with ❤ by Stackrole
Stars: ✭ 135 (-1.46%)
Mutual labels:  graphql
Graphql Compose Examples
Live examples of schemas builded with graphql-compose
Stars: ✭ 134 (-2.19%)
Mutual labels:  graphql
Python Graphql Client
Simple GraphQL client for Python 2.7+
Stars: ✭ 133 (-2.92%)
Mutual labels:  graphql
Graphql Api For Wp
[READ ONLY] GraphQL API for WordPress
Stars: ✭ 136 (-0.73%)
Mutual labels:  graphql
Frontend
🌏 The front-end application code for https://buildkite.com
Stars: ✭ 132 (-3.65%)
Mutual labels:  graphql
Framework
Strongly-typed JavaScript object with support for validation and error handling.
Stars: ✭ 136 (-0.73%)
Mutual labels:  graphql
Gatsby Blog Starter Kit
A simple starter kit for a static blog created with Gatsby
Stars: ✭ 131 (-4.38%)
Mutual labels:  graphql
Graphql Cli
📟 Command line tool for common GraphQL development workflows
Stars: ✭ 1,814 (+1224.09%)
Mutual labels:  graphql
Graphql Mqtt Subscriptions
graphql-subscriptions implementation for MQTT protocol
Stars: ✭ 133 (-2.92%)
Mutual labels:  graphql
Aws Mobile Appsync Events Starter React Native
GraphQL starter application with Realtime and Offline functionality using AWS AppSync
Stars: ✭ 134 (-2.19%)
Mutual labels:  graphql
Saleor
A modular, high performance, headless e-commerce platform built with Python, GraphQL, Django, and React.
Stars: ✭ 14,720 (+10644.53%)
Mutual labels:  graphql

graphql-compose-aws

npm trends Travis Commitizen friendly semantic-release Greenkeeper badge

This module expose AWS Cloud API via GraphQL.

Generated Schema Introspection in SDL format can be found here (more than 10k types, ~2MB).

AWS SDK GraphQL

Supported all AWS SDK versions via official aws-sdk js client. Internally it generates Types and FieldConfigs from AWS SDK configs. You may put this generated types to any GraphQL Schema.

import { GraphQLSchema, GraphQLObjectType } from 'graphql';
import awsSDK from 'aws-sdk';
import { AwsApiParser } from 'graphql-compose-aws';

const awsApiParser = new AwsApiParser({
  awsSDK,
});

const schema = new GraphQLSchema({
  query: new GraphQLObjectType({
    name: 'Query',
    fields: {
      // Full API
      aws: awsApiParser.getFieldConfig(),

      // Partial API with desired services
      s3: awsApiParser.getService('s3').getFieldConfig(),
      ec2: awsApiParser.getService('ec2').getFieldConfig(),
    },
  }),
});

export default schema;

Full code examples

Installation

yarn add graphql graphql-compose aws-sdk graphql-compose-aws
// or
npm install graphql graphql-compose aws-sdk graphql-compose-aws --save

Modules graphql, graphql-compose, aws-sdk are in peerDependencies, so should be installed explicitly in your app.

Screenshots

Get List of EC2 instances from eu-west-1 region

screen shot 2017-12-03 at 18 19 28

Several AWS API calls in one query with different services and regions

screen shot 2017-12-03 at 18 07 50

License

MIT

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].