@pleaseai/emulate-gitlab
v0.3.2
Published
GitLab GraphQL API emulator for local development and CI.
Readme
@pleaseai/emulate-gitlab
GitLab GraphQL API emulator for local development and CI.
Serves POST /api/graphql backed by the real GitLab schema SDL, with full introspection support. Query resolvers are follow-up work — today the emulator validates queries against the schema and answers introspection, which is enough for clients that build against the schema (codegen, IDE tooling, connection smoke tests).
Ported from the UsefulSoftwareCo/emulate fork.
Install
npm install @pleaseai/emulate-gitlabUsually you do not install this directly — run it through the @pleaseai/emulate CLI.
Start
npx @pleaseai/emulate --service gitlabA single service starts on the base port (default 4000); use -p <port> to change it.
Usage
curl http://localhost:4000/api/graphql \
-H "Content-Type: application/json" \
-d '{"query":"{ __schema { queryType { name } } }"}'Seed Config
The GitLab emulator takes no seed data yet:
gitlab: {}