Skip to content

ikagotso/sam-serverless-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless GraphQL API

SAM/Cloudformation yaml file to create a GraphQL API with AWS AppSync backed by a DynamoDB table and Lambda Function.

Schema

        schema {
            query: Query
            mutation: Mutation
        }

        type StellarObject {
            identifier: String
            type: String
            galaxy: String
        }

        input AddStellarObjectInput {
            identifier: String!
            type: String
            galaxy: String
        }

        input UpdateStellarObjectInput {
            identifier: String!
            type: String
            galaxy: String
        }

        type Mutation {
            addStellarObject(input: AddStellarObjectInput!): StellarObject
            updateStellarObject(input: UpdateStellarObjectInput!): StellarObject
            deleteStellarObject(identifier: String!): StellarObject
        }

        type Query {
            getStellarObject(identifier: String!): StellarObject
            getStellarObjects: [StellarObject]
            getStellarObjectCoordinates(identifier: String!): String
        }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages