| name | add-portal-admin-api-mutation |
| description | Add a Portal Admin GraphQL mutation under portal/src/graphql/adminapi/mutations. |
| argument-hint | <mutation name> |
Follow this skill when adding a Portal Admin GraphQL mutation.
Workflow
- Read
./portal/src/graphql/adminapi/schema.graphql first.
- Create the
.graphql file under ./portal/src/graphql/adminapi/mutations.
- Query all fields on the top-level entity unless the user explicitly says otherwise.
- Avoid nested entities unless the user asked for them.
- Run
cd ./portal && npm run gentype after adding the file.
Notes
- Keep the operation name consistent with existing Portal GraphQL naming.
- Do not invent schema fields; use only what exists in the schema file.