This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
getProduct { | |
id | |
name | |
__typename // auto-included | |
} | |
getCart{ | |
id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
overwrite: true | |
schema: | |
- https://YOUR-API/v1/graphql: | |
headers: | |
Authorization: "${TOKEN_API}" | |
documents: src/**/*.gql | |
generates: | |
./src/services/index.tsx: | |
plugins: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
overwrite: true | |
schema: | |
- https://YOUR-API/v1/graphql: | |
headers: | |
Authorization: "${TOKEN_API}" | |
documents: src/**/*.gql | |
generates: | |
./src/services/index.tsx: | |
plugins: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// run command | |
npm install cypress --save-dev | |
// add in your scripts package.json | |
"cy:dev": "cypress open", | |
// run this command to create cypress folder and cypress.json | |
run run cy:dev | |
// create a file in cypress/integration/login.js and add: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- possiveis soluções para a api | |
// -------------------------- | |
1. ao fazer o upload do livro fazer um split das palavras e criar um id para cada uma, | |
ao clicar é só adicionar propriedades aquele id por user | |
(problemas: provavelmente muito pesado pro db e complexo pra dar um search, ou saber a página da palavra para pular pra ela) | |
[GET] api/v1/read/{id}?limit=500&page=1 | |
{ | |
id: 3965, |