database-types icon indicating copy to clipboard operation
database-types copied to clipboard

Add MongoDB support

Open phra opened this issue 8 years ago • 4 comments

hi,

it would be nice to have support for mongodb. (in core or via a dedicated plugin) is this architecture already supporting plugins? if not you should define an interface to be implemented by plugins and leave the core agnostic to the db driver being used.

phra avatar Jun 07 '17 09:06 phra

this could help https://github.com/graphql-community/create-graphql/blob/master/packages/generator/src/utils.js#L271

sibelius avatar Jun 07 '17 12:06 sibelius

if not you should define an interface to be implemented by plugins and leave the core agnostic to the db driver being used.

I am going to break this module into at least two modules. One for fetching database schema and second to generate types.

gajus avatar Jun 07 '17 14:06 gajus

cool! 🔥

phra avatar Jun 08 '17 08:06 phra

i'm going to create a dedicated issue for separating the core.

phra avatar Jun 11 '17 14:06 phra