Skip to content

Instantly share code, notes, and snippets.

View hernanif1's full-sized avatar
💭
Work hard, play hard 😉

Hernani Fernandes hernanif1

💭
Work hard, play hard 😉
  • Eindhoven - The Netherlands
View GitHub Profile
```
getProduct {
id
name
__typename // auto-included
}
getCart{
id
overwrite: true
schema:
- https://YOUR-API/v1/graphql:
headers:
Authorization: "${TOKEN_API}"
documents: src/**/*.gql
generates:
./src/services/index.tsx:
plugins:
overwrite: true
schema:
- https://YOUR-API/v1/graphql:
headers:
Authorization: "${TOKEN_API}"
documents: src/**/*.gql
generates:
./src/services/index.tsx:
plugins:
// 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:
- 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,