Skip to content

dblock/redwood-js-appsync-graphql-demo

Repository files navigation

A Redwood.js demo app that retrieves and displays data from an AppSync GraphQL service. See this discussion for details.

Screenshot

Run Me

API

I used an AppSync endpoint that returned data with the following schema. This was an existing service that is not available publicly.

type ZipData {
	zip: String
	timezone: String
	restaurants: [RestaurantData]
}

type RestaurantData {
	name: String
	latitude: String
	longitude: String
}

type Query {
	get_zip(zip: String!): ZipData
}

schema {
	query: Query
}

Settings

Create .env with the following settings

GOOGLE_MAPS_API_KEY=
APPSYNC_API_ENDPOINT_URL=https://....appsync-api.us-east-1.amazonaws.com/graphql
APPSYNC_API_KEY=

Run

yarn redwood dev

About

Redwood.js Demo App that calls an AppSync GraphQL endpoint.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published