fxa/packages/fxa-graphql-api
dependabot[bot] ce82d09462
chore(deps): bump the npm_and_yarn group with 3 updates
Bumps the npm_and_yarn group with 3 updates: [postcss](https://github.com/postcss/postcss), [express](https://github.com/expressjs/express) and [serve-static](https://github.com/expressjs/serve-static).


Updates `postcss` from 8.4.43 to 8.4.44
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.43...8.4.44)

Updates `express` from 4.20.0 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.20.0...4.21.0)

Updates `serve-static` from 1.14.2 to 1.16.0
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.14.2...1.16.0)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: express
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: serve-static
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-12 16:11:41 +00:00
..
.vscode chore(multiple): update mocha wherever used 2022-06-28 09:03:42 -07:00
src feat(recoveryKey): Add `estimatedSyncDeviceCount` to graphql account resolver 2024-09-09 21:19:14 -04:00
test bug(graphql): Fix mismatch in test state 2024-03-12 12:01:16 -07:00
.eslintignore task(many): Enable eslint and fix linting errors 2023-04-13 14:19:17 -07:00
.eslintrc.json task(many): Enable eslint and fix linting errors 2023-04-13 14:19:17 -07:00
.nsprc feat(graphql-api): initial base project 2020-04-22 11:47:46 -07:00
README.md fix(graphql): Fix graphql playground 2022-05-11 15:00:13 -04:00
backstage.yaml fix(backstage): update definition errors 2024-01-26 10:25:40 -08:00
jest.config.js feat(libs): allow packagename-based imports 2023-08-07 14:01:05 -04:00
nest-cli.json bug(admin-server,graphql): Fix missing allowlists 2023-07-20 11:13:01 -07:00
package.json chore(deps): bump the npm_and_yarn group with 3 updates 2024-09-12 16:11:41 +00:00
pm2.config.js task(auth,graphql,profile): Make sure profile cache is cleared before sending profile update event. 2024-08-29 18:56:04 -07:00
tsconfig.build.json task(graphql): Send notifications when users opt in/out of metrics collection 2024-04-24 08:10:14 -07:00
tsconfig.json chore(build): initial nx implementation 2023-05-23 08:37:47 -07:00

README.md

FXA GraphQL API

This is the GraphQL server for the Firefox Accounts API, its current primary consume is the new settings page.

Connecting to the Playground

The GraphQL playground for this package is available at localhost:8290/graphql, providing a GUI for an up-to-date schema and API docs, as well as a way to test queries and mutations.

The playground requires a sessionToken for authorization from the login response. Verify an account locally, sign out, and with the Network tab open, login. Under the "Response" tab for the account/login POST request, copy the sessionToken.

Add this as a property of a JSON object with an authorization key in the bottom left-hand corner of the GQL playground labeled "HTTP Headers":

{
  "authorization": "Bearer d4a62a0f58efb0e9c7d17b579434f2a56cad10503033874002ddd507a503cea5"
}

Hit the "play" button and the schema and docs will populate.

Testing

This package uses Mocha to test its code. By default npm test will test all files ending in .spec.ts under src/test/ and uses esbuild-register so it can process TypeScript files.

Test specific tests with the following commands:

# Test only src/test/lib/sentry.spec.ts
npx mocha -r esbuild-register src/test/lib/sentry.spec.ts

# Grep for "bearer token"
npx mocha -r esbuild-register src/test/lib/** -g "bearer token"

Refer to Mocha's CLI documentation for more advanced test configuration.

License

MPL-2.0