wrapper to connect the v3 endpoints to pocket graph v1
- endpoints to be covered
add
,send
, andget
- the infrastructure code is present in
.aws
- the application code is in
src
.circleci
contains circleCI setup
nvm use
npm ci
docker-compose up
npm run test
npm run test-integrations
npm ci
docker-compose up
Alternatively if you do not need to use the docker services in your app, like snowplow, you can do:
npm ci
npm run start:dev
Our graphQL types are generated from the pocket graph v1 schema. To pull the latest types, run:
npm run codegen
- Add your graphQL query or mutation to
src/graphql/queries/
folder - Run
npm run codegen
- This will generate types in
src/generated/graphql/types.ts
- For example, if you add a new query
getSavedItems
, you will see a new typeGetSavedItemsQuery
insrc/generated/graphql/types.ts
- Likewise, if you passed any input variables to the query, you will see a new type
GetSavedItemsQueryVariables
insrc/generated/graphql/types.ts
- Likewise, if you passed any input variables to the query, you will see a new type