Skip to content

Minimal BFF style template with NodeJS Apollo, GraphQL, and React with TS frontend.

Notifications You must be signed in to change notification settings

Ariacell/ReactAndNodeJSWorkspacesTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MockApolloProviderBugRepro

Minimal reproduction of strange apollo provider bug with MockedProvider and array return types in newData

Steps to run after cloning this repo:

In two terminals:

1. WEB

cd workspaces/web && yarn && yarn start

To run tests with jest in workspaces, run

yarn test

2. SERVER

cd workspaces/server && yarn build && yarn start #or yarn start:dev or nodemon

Web client runs on 3000 by default (is wrapped with CRA so will prompt if 3000 is occupied Server runs on 5000 by default, visit localhost:5000/graphql for playground

Sample server query:

query {
  getObjectWithArray {
    objectId
    objectList {
      subOjectId
      subObjectName
      subObjectDescription
    }
  }
}

About

Minimal BFF style template with NodeJS Apollo, GraphQL, and React with TS frontend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published