Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL Experiment - Apollo + Next.js #13

Closed
1 of 3 tasks
lauragift21 opened this issue Jun 3, 2020 · 2 comments
Closed
1 of 3 tasks

GraphQL Experiment - Apollo + Next.js #13

lauragift21 opened this issue Jun 3, 2020 · 2 comments
Assignees
Projects

Comments

@lauragift21
Copy link
Contributor

lauragift21 commented Jun 3, 2020

Research how to use apollo as the primary data source for Next.js apps.

Acceptance Criteria

  • We have a demo app showing how to work with Apollo and Next.js with local data and external data sources.

Task

  • Set up a demo project with Apollo and Next.js
  • Convert external rest api into graphql using apollo data source
@lauragift21 lauragift21 added this to the Sprint - 12 June 2020 milestone Jun 3, 2020
@lauragift21
Copy link
Contributor Author

Notes from GraphQL Experiment

Why?

We want to have a single source of truth for all of the local and remote data in our application.

Analysis

How do we use demo.ckan.org API with Apollo?

  • It's easy to adopt Apollo incrementally, meaning you can set it up alongside an existing solution (such as a REST API) and migrate functionality at your convenience.

  • Apollo provides a DataSource class that we can extend to handle interaction logic for a particular type of data source that we can use to create a new data source for GraphQL API which we can then consume on the client-side.

connect a Rest API (demo.ckan.org) with apollo-datasource-rest-> Consume on the frontend

@anuveyatsu anuveyatsu added this to Prioritized in v1 Overview via automation Jun 15, 2020
@anuveyatsu anuveyatsu moved this from Prioritized to In progress in v1 Overview Jun 17, 2020
@anuveyatsu anuveyatsu self-assigned this Jun 17, 2020
@anuveyatsu
Copy link
Member

Closing this as FIXED. See #29 and #32 for how we have implemented this.

v1 Overview automation moved this from In progress to Done Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v1 Overview
  
Done
Development

No branches or pull requests

2 participants