Skip to content

usefulio/usefulio-graphql-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Useful IO Apollo Client with React

.
├── README.md
├── package-lock.json
├── package.json
├── public
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
└── src
    ├── cache.js - In memory cache definition
    ├── components
    │   ├── App.css
    │   ├── App.js
    │   ├── App.test.js
    │   ├── Loading.js
    │   ├── SignIn.js
    │   ├── SignOut.js
    │   └── Users.js
    ├── defaultState.js - Default state of the client cache
    ├── graphql - GraphQL queries and mutations
    │   ├── signedIn.js
    │   ├── updateSignedIn.js
    │   └── users.js
    ├── index.css
    ├── index.js - Main file with Apollo client definition
    ├── registerServiceWorker.js
    ├── resolvers.js - Mutations' resolvers for the client cache
    └── utils - Utility functions
        ├── sha256.js
        ├── signIn.js - Function making request to the /loginWithPassword route and setting JWT token in the localStorage
        └── signOut.js - Function removing JWT token from the localStorage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published