captbaritone / captbaritone/grats

Support for multiple schemas

Open
#181 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
358
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Hi there,

Are there any plans to introduce multi-instance support without having to create separate tsconfig files?

[Something like `gql.tada` does](https://gql-tada.0no.co/get-started/installation#step-1-%E2%80%94-installing-packages), where it allows you to configure the plugin multiple times (via `ts-config.json`'s `compilerOptions.plugins`).

Reason: I've had the same issue multiple times, where I'd want to expose different schema on different endpoints for different audiences, but code them in the same codebase (monolith).

For example: When a product has multiple target audiences, with different login mechanisms, and completely different functionality.
- a B2B and B2C product, with different sets of APIs and users/auth
- an end-user vs an admin portal API

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.