graphql-hive / graphql-hive/graphql-modules

Allows modules to not provide any type definition if they provide at least one provider

Open
#2,471 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.3k
Forks
113
Avg merge
3h 36m
Merged PRs (30d)
1

Description

In Accounts.js 1.0 certain modules like the mongo module are in charge to solely provide a `DatabaseInterfaceUserToken` or a `DatabaseInterfaceSessionsToken`: they basically implement a known interface which other modules can use to access either the database used to store user data or the one used to store sessions.
Unfortunately graphql-modules complains about missing `typeDefs` so I had to work it around by passing [fake ones](https://github.com/accounts-js/accounts/blob/master/modules/module-mongo/src/index.ts#L35).
Another use case could be modules used solely to provide services consumed by REST-only users.
In either case we shouldn't be forced to provide `typeDefs` in each and every module if we want to allow the user to use modules to piece together their application.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.