You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert Atlas checklist schema.json file to a GraphqlObject class and save it to server/types/checklist.ts (gpt is excellent for this)
Add a checklists field definition to server/fields/cheklists.ts (look at existing types for examples: server/fields/incidents.ts)
Convert rules.json to graphql-shield permissions and add them to server/fields/checklists.ts
Add a test fixture for checklists server/tests/fixtures/checklists.ts and add it to server/tests/mutation-fields.spec.ts and server/tests/query-fields.spec.ts
Migrate custom risks resolver to the checklists field file server/fields/checklists.ts
Add a Custom test for this resolver server/tests/checklists.ts
To run tests, npm run test:api.
To start a node server with only the API npm run start:api (helpful for debugging)
Note that the Graphql fields checklist and checklists signature changes; instead of receiving a query argument, the argument's name is filter, and the properties differ, so the front end needs to be updated accordingly.
The text was updated successfully, but these errors were encountered:
per @cesarvarela :
schema.json
file to a GraphqlObject class and save it toserver/types/checklist.ts
(gpt is excellent for this)checklists
field definition toserver/fields/cheklists.ts
(look at existing types for examples:server/fields/incidents.ts
)rules.json
tographql-shield
permissions and add them toserver/fields/checklists.ts
server/tests/fixtures/checklists.ts
and add it toserver/tests/mutation-fields.spec.ts
andserver/tests/query-fields.spec.ts
server/fields/checklists.ts
server/tests/checklists.ts
To run tests,
npm run test:api
.To start a node server with only the API
npm run start:api
(helpful for debugging)Note that the Graphql fields
checklist
andchecklists
signature changes; instead of receiving aquery
argument, the argument's name isfilter,
and the properties differ, so the front end needs to be updated accordingly.The text was updated successfully, but these errors were encountered: