Skip to content

feat(graphql): createOrganization mutation (self-serve org creation) - #4

Merged
rrader26 merged 1 commit into
mainfrom
feat/create-organization-mutation
Jun 14, 2026
Merged

feat(graphql): createOrganization mutation (self-serve org creation)#4
rrader26 merged 1 commit into
mainfrom
feat/create-organization-mutation

Conversation

@rrader26

Copy link
Copy Markdown

Adds a createOrganization(name: String!) GraphQL mutation that creates an org via Organizations::CreateService and makes the current user its first admin — mirroring the RegisterUser bootstrap (CreateService → Membership → admin MembershipRole). Each org gets its own API key + billing entity automatically.

Backs the "Create organization" button in lago-front (ThinkfleetAI/lago-front#feat/create-organization-button) so operators can spin up additional orgs without going through signup.

Files: app/graphql/mutations/organizations/create.rb, registered in mutation_type.rb.

🤖 Generated with Claude Code

Adds a CreateOrganization mutation that creates an org (Organizations::CreateService)
and makes the current user its first admin, mirroring the RegisterUser bootstrap.
Backs a 'Create organization' button in the front-end org switcher so operators can
spin up additional organizations without going through signup.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rrader26
rrader26 merged commit 35ff768 into main Jun 14, 2026
2 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant